From f15ba999d9157730bb731cb3493fc1bee9d1c49c Mon Sep 17 00:00:00 2001 From: problematicconsumer Date: Sat, 9 Dec 2023 15:32:06 +0330 Subject: [PATCH] Fix intro routing bug --- lib/core/router/app_router.dart | 1 + lib/core/router/routes.dart | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/router/app_router.dart b/lib/core/router/app_router.dart index 44e14eac..8db2baae 100644 --- a/lib/core/router/app_router.dart +++ b/lib/core/router/app_router.dart @@ -40,6 +40,7 @@ GoRouter router(RouterRef ref) { debugLogDiagnostics: true, routes: [ if (useMobileRouter) $mobileWrapperRoute else $desktopWrapperRoute, + $introRoute, ], refreshListenable: notifier, redirect: notifier.redirect, diff --git a/lib/core/router/routes.dart b/lib/core/router/routes.dart index d5ec6869..01a6feb6 100644 --- a/lib/core/router/routes.dart +++ b/lib/core/router/routes.dart @@ -23,7 +23,6 @@ GlobalKey? _dynamicRootKey = @TypedShellRoute( routes: [ - TypedGoRoute(path: "/intro", name: IntroRoute.name), TypedGoRoute( path: "/", name: HomeRoute.name, @@ -89,7 +88,6 @@ class MobileWrapperRoute extends ShellRouteData { @TypedShellRoute( routes: [ - TypedGoRoute(path: "/intro", name: IntroRoute.name), TypedGoRoute( path: "/", name: HomeRoute.name, @@ -149,6 +147,7 @@ class DesktopWrapperRoute extends ShellRouteData { } } +@TypedGoRoute(path: "/intro", name: IntroRoute.name) class IntroRoute extends GoRouteData { const IntroRoute(); static const name = "Intro";