File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,17 @@ GoRouter createRouter({
140
140
path: Routes .dashboard,
141
141
name: Routes .dashboardName,
142
142
builder: (context, state) => const DashboardPage (),
143
+ routes: [
144
+ // The settings page is a sub-route of the dashboard.
145
+ // This allows it to be displayed within the AppShell
146
+ // (with sidebar and top bar visible) without adding
147
+ // a new item to the main navigation sidebar.
148
+ GoRoute (
149
+ path: Routes .settings,
150
+ name: Routes .settingsName,
151
+ builder: (context, state) => const SettingsPage (),
152
+ ),
153
+ ],
143
154
),
144
155
],
145
156
),
@@ -178,15 +189,6 @@ GoRouter createRouter({
178
189
),
179
190
],
180
191
),
181
- StatefulShellBranch (
182
- routes: [
183
- GoRoute (
184
- path: Routes .settings,
185
- name: Routes .settingsName,
186
- builder: (context, state) => const SettingsPage (),
187
- ),
188
- ],
189
- ),
190
192
],
191
193
),
192
194
],
You can’t perform that action at this time.
0 commit comments