aboutsummaryrefslogtreecommitdiffstats
path: root/lib/homescreen.dart
diff options
context:
space:
mode:
authorFelipe Erias <felipeerias@igalia.com>2021-11-12 15:36:12 +0900
committerFelipe Erias <felipeerias@igalia.com>2021-11-12 15:36:12 +0900
commit8c32227596b5de15417e667cca84178a157543a1 (patch)
treeb1db2feda775b1aee41bebc306481d45a5bf70eb /lib/homescreen.dart
parent3cdd54458bfc6ba0066cb2a82c4a91bd4baf9b82 (diff)
Visual appearance of main navigation
Diffstat (limited to 'lib/homescreen.dart')
-rw-r--r--lib/homescreen.dart8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/homescreen.dart b/lib/homescreen.dart
index 9879342..b78a5d2 100644
--- a/lib/homescreen.dart
+++ b/lib/homescreen.dart
@@ -28,7 +28,8 @@ class _HomescreenState extends State<Homescreen> with TickerProviderStateMixin {
@override
Widget build(BuildContext context) {
var screenHeight = MediaQuery.of(context).size.height;
- var iconSize = screenHeight / 5;
+ var iconSize = screenHeight / 6;
+ var railSize = screenHeight / 5;
return Scaffold(
body: Row(
@@ -39,8 +40,9 @@ class _HomescreenState extends State<Homescreen> with TickerProviderStateMixin {
backgroundColor: Colors.black12,
selectedIndex: _selectedIndex,
groupAlignment: -1.0,
- minWidth: iconSize,
+ minWidth: railSize,
// leading widget?
+ // leading: Icon(Icons.house_outlined, size: iconSize),
// trailing widget does not expand to bottom
onDestinationSelected: (int index) {
setNavigationIndex(index);
@@ -82,7 +84,7 @@ class _HomescreenState extends State<Homescreen> with TickerProviderStateMixin {
left: 0,
right: 0,
// This is the info widget with time, date, etc.
- child: ClockWiddget(size: iconSize),
+ child: ClockWiddget(size: railSize),
)
],
),