Fix intro routing bug

This commit is contained in:
problematicconsumer
2023-12-09 15:32:06 +03:30
parent 8bd9cef5ca
commit f15ba999d9
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,6 @@ GlobalKey<NavigatorState>? _dynamicRootKey =
@TypedShellRoute<MobileWrapperRoute>(
routes: [
TypedGoRoute<IntroRoute>(path: "/intro", name: IntroRoute.name),
TypedGoRoute<HomeRoute>(
path: "/",
name: HomeRoute.name,
@@ -89,7 +88,6 @@ class MobileWrapperRoute extends ShellRouteData {
@TypedShellRoute<DesktopWrapperRoute>(
routes: [
TypedGoRoute<IntroRoute>(path: "/intro", name: IntroRoute.name),
TypedGoRoute<HomeRoute>(
path: "/",
name: HomeRoute.name,
@@ -149,6 +147,7 @@ class DesktopWrapperRoute extends ShellRouteData {
}
}
@TypedGoRoute<IntroRoute>(path: "/intro", name: IntroRoute.name)
class IntroRoute extends GoRouteData {
const IntroRoute();
static const name = "Intro";