diff --git a/veggieseasons/lib/main.dart b/veggieseasons/lib/main.dart index 07943c438..a09b0d8f5 100644 --- a/veggieseasons/lib/main.dart +++ b/veggieseasons/lib/main.dart @@ -214,7 +214,7 @@ class _VeggieAppState extends State with RestorationMixin { parentNavigatorKey: _rootNavigatorKey, path: 'details/:id', pageBuilder: (context, state) { - final veggieId = int.parse(state.params['id']!); + final veggieId = int.parse(state.pathParameters['id']!); return CupertinoPage( restorationId: 'route.details', fullscreenDialog: true, diff --git a/veggieseasons/pubspec.yaml b/veggieseasons/pubspec.yaml index faa0a072c..0b31723aa 100644 --- a/veggieseasons/pubspec.yaml +++ b/veggieseasons/pubspec.yaml @@ -20,7 +20,7 @@ dependencies: git: url: https://github.com/google/flutter-desktop-embedding path: plugins/window_size - go_router: ^6.0.0 + go_router: ^7.0.0 dev_dependencies: analysis_defaults: