fixed back button navigation
This commit is contained in:
@@ -8,12 +8,15 @@ import 'package:go_router/go_router.dart';
|
||||
part 'routes.g.dart';
|
||||
|
||||
@TypedGoRoute<KagiRoute>(
|
||||
name: 'KagiRoute',
|
||||
path: '/',
|
||||
routes: [
|
||||
TypedGoRoute<AboutRoute>(
|
||||
name: 'AboutRoute',
|
||||
path: 'about',
|
||||
),
|
||||
TypedGoRoute<SettingsRoute>(
|
||||
name: 'SettingsRoute',
|
||||
path: 'settings',
|
||||
),
|
||||
],
|
||||
|
||||
@@ -12,14 +12,17 @@ List<RouteBase> get $appRoutes => [
|
||||
|
||||
RouteBase get $kagiRoute => GoRouteData.$route(
|
||||
path: '/',
|
||||
name: 'KagiRoute',
|
||||
factory: $KagiRouteExtension._fromState,
|
||||
routes: [
|
||||
GoRouteData.$route(
|
||||
path: 'about',
|
||||
name: 'AboutRoute',
|
||||
factory: $AboutRouteExtension._fromState,
|
||||
),
|
||||
GoRouteData.$route(
|
||||
path: 'settings',
|
||||
name: 'SettingsRoute',
|
||||
factory: $SettingsRouteExtension._fromState,
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user