diff --git a/packages/go_router/CHANGELOG.md b/packages/go_router/CHANGELOG.md index 3baca0cbbb2..d0cc3ce5cdc 100644 --- a/packages/go_router/CHANGELOG.md +++ b/packages/go_router/CHANGELOG.md @@ -1,3 +1,7 @@ +## 11.1.4 + +- Fixes missing parameters in the type-safe routes topic documentation. + ## 11.1.3 - Fixes missing state.extra in onException(). diff --git a/packages/go_router/doc/type-safe-routes.md b/packages/go_router/doc/type-safe-routes.md index 194e5430222..f23397f357d 100644 --- a/packages/go_router/doc/type-safe-routes.md +++ b/packages/go_router/doc/type-safe-routes.md @@ -30,7 +30,7 @@ part 'go_router_builder.g.dart'; @immutable class HomeScreenRoute extends GoRouteData { @override - Widget build(BuildContext context) { + Widget build(BuildContext context, GoRouterState state) { return const HomeScreen(); } } @@ -44,7 +44,7 @@ class SongRoute extends GoRouteData { }); @override - Widget build(BuildContext context) { + Widget build(BuildContext context, GoRouterState state) { return SongScreen(songId: id.toString()); } } diff --git a/packages/go_router/pubspec.yaml b/packages/go_router/pubspec.yaml index 9fb123c99ff..3b3da6c85f0 100644 --- a/packages/go_router/pubspec.yaml +++ b/packages/go_router/pubspec.yaml @@ -1,7 +1,7 @@ name: go_router description: A declarative router for Flutter based on Navigation 2 supporting deep linking, data-driven routes and more -version: 11.1.3 +version: 11.1.4 repository: https://github.com/flutter/packages/tree/main/packages/go_router issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+go_router%22