diff --git a/packages/neon/neon/lib/src/router.g.dart b/packages/neon/neon/lib/src/router.g.dart index 35985eb7..a8d1e57f 100644 --- a/packages/neon/neon/lib/src/router.g.dart +++ b/packages/neon/neon/lib/src/router.g.dart @@ -159,6 +159,8 @@ extension $_AddAccountFlowRouteExtension on _AddAccountFlowRoute { Future push(BuildContext context) => context.push(location); void pushReplacement(BuildContext context) => context.pushReplacement(location); + + void replace(BuildContext context) => context.replace(location); } extension $_AddAccountQrcodeRouteExtension on _AddAccountQrcodeRoute { @@ -173,6 +175,8 @@ extension $_AddAccountQrcodeRouteExtension on _AddAccountQrcodeRoute { Future push(BuildContext context) => context.push(location); void pushReplacement(BuildContext context) => context.pushReplacement(location); + + void replace(BuildContext context) => context.replace(location); } extension $_AddAccountCheckServerStatusRouteExtension on _AddAccountCheckServerStatusRoute { @@ -192,6 +196,8 @@ extension $_AddAccountCheckServerStatusRouteExtension on _AddAccountCheckServerS Future push(BuildContext context) => context.push(location); void pushReplacement(BuildContext context) => context.pushReplacement(location); + + void replace(BuildContext context) => context.replace(location); } extension $_AddAccountCheckAccountRouteExtension on _AddAccountCheckAccountRoute { @@ -215,6 +221,8 @@ extension $_AddAccountCheckAccountRouteExtension on _AddAccountCheckAccountRoute Future push(BuildContext context) => context.push(location); void pushReplacement(BuildContext context) => context.pushReplacement(location); + + void replace(BuildContext context) => context.replace(location); } extension $AccountSettingsRouteExtension on AccountSettingsRoute { @@ -305,6 +313,8 @@ extension $LoginFlowRouteExtension on LoginFlowRoute { Future push(BuildContext context) => context.push(location); void pushReplacement(BuildContext context) => context.pushReplacement(location); + + void replace(BuildContext context) => context.replace(location); } extension $LoginQrcodeRouteExtension on LoginQrcodeRoute { diff --git a/packages/neon/neon/pubspec.yaml b/packages/neon/neon/pubspec.yaml index b54e10af..cb309c5c 100644 --- a/packages/neon/neon/pubspec.yaml +++ b/packages/neon/neon/pubspec.yaml @@ -22,7 +22,7 @@ dependencies: flutter_native_splash: ^2.2.19 flutter_svg: ^2.0.5 flutter_zxing: ^1.1.2 # ^1.2.0 downgrades to image ^3.0.0 which breaks our dependencies. See https://github.com/khoren93/flutter_zxing/issues/94 - go_router: 8.0.3 + go_router: ^9.0.3 http: ^0.13.6 intersperse: ^2.0.0 intl: ^0.18.0 @@ -58,7 +58,7 @@ dependencies: dev_dependencies: build_runner: ^2.4.4 - go_router_builder: 2.1.1 + go_router_builder: ^2.2.1 json_serializable: ^6.6.2 nit_picking: git: