diff --git a/app/lib/core/routing/routes.dart b/app/lib/core/routing/routes.dart index e030367e..ba6a5b40 100644 --- a/app/lib/core/routing/routes.dart +++ b/app/lib/core/routing/routes.dart @@ -15,6 +15,9 @@ part 'routes.g.dart'; TypedGoRoute( path: 'about', ), + TypedGoRoute( + path: 'settings', + ), ], ) class KagiRoute extends GoRouteData { @@ -39,9 +42,6 @@ class KagiRoute extends GoRouteData { } } -@TypedGoRoute( - path: '/settings', -) class SettingsRoute extends GoRouteData { @override Widget build(BuildContext context, GoRouterState state) { diff --git a/app/lib/core/routing/routes.g.dart b/app/lib/core/routing/routes.g.dart index 1c776632..fe009116 100644 --- a/app/lib/core/routing/routes.g.dart +++ b/app/lib/core/routing/routes.g.dart @@ -8,7 +8,6 @@ part of 'routes.dart'; List get $appRoutes => [ $kagiRoute, - $settingsRoute, ]; RouteBase get $kagiRoute => GoRouteData.$route( @@ -19,6 +18,10 @@ RouteBase get $kagiRoute => GoRouteData.$route( path: 'about', factory: $AboutRouteExtension._fromState, ), + GoRouteData.$route( + path: 'settings', + factory: $SettingsRouteExtension._fromState, + ), ], ); @@ -56,11 +59,6 @@ extension $AboutRouteExtension on AboutRoute { void replace(BuildContext context) => context.replace(location); } -RouteBase get $settingsRoute => GoRouteData.$route( - path: '/settings', - factory: $SettingsRouteExtension._fromState, - ); - extension $SettingsRouteExtension on SettingsRoute { static SettingsRoute _fromState(GoRouterState state) => SettingsRoute();