Skip to content

Commit f0175ff

Browse files
committed
fix: navrail index
1 parent a1a5f4f commit f0175ff

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

lib/screens/dashboard.dart

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,19 @@ class Dashboard extends ConsumerWidget {
3737
'Requests',
3838
style: Theme.of(context).textTheme.labelSmall,
3939
),
40+
kVSpacer10,
41+
IconButton(
42+
isSelected: railIdx == 1,
43+
onPressed: () {
44+
ref.read(navRailIndexStateProvider.notifier).state = 1;
45+
},
46+
icon: const Icon(Icons.computer_outlined),
47+
selectedIcon: const Icon(Icons.computer_rounded),
48+
),
49+
Text(
50+
'Variables',
51+
style: Theme.of(context).textTheme.labelSmall,
52+
),
4053
],
4154
),
4255
Expanded(
@@ -45,12 +58,12 @@ class Dashboard extends ConsumerWidget {
4558
children: [
4659
Padding(
4760
padding: const EdgeInsets.only(bottom: 16.0),
48-
child: bottomButton(context, ref, railIdx, 1,
61+
child: bottomButton(context, ref, railIdx, 2,
4962
Icons.help, Icons.help_outline),
5063
),
5164
Padding(
5265
padding: const EdgeInsets.only(bottom: 16.0),
53-
child: bottomButton(context, ref, railIdx, 2,
66+
child: bottomButton(context, ref, railIdx, 3,
5467
Icons.settings, Icons.settings_outlined),
5568
),
5669
],
@@ -81,6 +94,7 @@ class Dashboard extends ConsumerWidget {
8194
index: railIdx,
8295
children: const [
8396
HomePage(),
97+
SizedBox(),
8498
IntroPage(),
8599
SettingsPage(),
86100
],

0 commit comments

Comments
 (0)