Refactor router

This commit is contained in:
problematicconsumer
2023-11-26 21:59:57 +03:30
parent 829d58a1a2
commit 0c1768e05e
8 changed files with 383 additions and 461 deletions

View File

@@ -38,7 +38,9 @@ GoRouter router(RouterRef ref) {
navigatorKey: rootNavigatorKey,
initialLocation: initialLocation,
debugLogDiagnostics: true,
routes: useMobileRouter ? mobileRoutes : desktopRoutes,
routes: [
if (useMobileRouter) $mobileWrapperRoute else $desktopWrapperRoute,
],
refreshListenable: notifier,
redirect: notifier.redirect,
observers: [