Skip to content

Commit f45c148

Browse files
committed
refactor: Move settings route outside shell
- Simplify routing structure - Remove unnecessary nesting
1 parent 18cc864 commit f45c148

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

lib/router/router.dart

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -178,17 +178,13 @@ GoRouter createRouter({
178178
),
179179
],
180180
),
181-
StatefulShellBranch(
182-
routes: [
183-
GoRoute(
184-
path: Routes.settings,
185-
name: Routes.settingsName,
186-
builder: (context, state) => const SettingsPage(),
187-
),
188-
],
189-
),
190181
],
191182
),
183+
GoRoute(
184+
path: Routes.settings,
185+
name: Routes.settingsName,
186+
builder: (context, state) => const SettingsPage(),
187+
),
192188
],
193189
);
194190
}

0 commit comments

Comments
 (0)