Skip to content

Commit 56cc2cd

Browse files
committed
refactor: move settings route to shell branch
1 parent f5f0004 commit 56cc2cd

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

lib/router/router.dart

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,17 @@ 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+
),
181190
],
182191
),
183-
GoRoute(
184-
path: Routes.settings,
185-
name: Routes.settingsName,
186-
builder: (context, state) => const SettingsPage(),
187-
),
188192
],
189193
);
190194
}

0 commit comments

Comments
 (0)