diff --git a/packages/go_router/CHANGELOG.md b/packages/go_router/CHANGELOG.md index ae73f40e0c2..0380e7b2be1 100644 --- a/packages/go_router/CHANGELOG.md +++ b/packages/go_router/CHANGELOG.md @@ -1,3 +1,7 @@ +## 10.1.3 + +- Fixes an issue in the documentation that was using `state.queryParameters` instead of `state.uri.queryParameters`. + ## 10.1.2 * Adds pub topics to package metadata. diff --git a/packages/go_router/doc/configuration.md b/packages/go_router/doc/configuration.md index ad6fadd9473..99680c779d6 100644 --- a/packages/go_router/doc/configuration.md +++ b/packages/go_router/doc/configuration.md @@ -55,7 +55,7 @@ after the `?`), use [GoRouterState][]. For example, a URL path such as ```dart GoRoute( path: '/users', - builder: (context, state) => const UsersScreen(filter: state.queryParameters['filter']), + builder: (context, state) => const UsersScreen(filter: state.uri.queryParameters['filter']), ), ``` @@ -151,4 +151,4 @@ final _router = GoRouter( [GoRouter]: https://pub.dev/documentation/go_router/latest/go_router/GoRouter-class.html [GoRoute]: https://pub.dev/documentation/go_router/latest/go_router/GoRoute-class.html [GoRouterState]: https://pub.dev/documentation/go_router/latest/go_router/GoRouterState-class.html -[ShellRoute]: https://pub.dev/documentation/go_router/latest/go_router/ShellRoute-class.html \ No newline at end of file +[ShellRoute]: https://pub.dev/documentation/go_router/latest/go_router/ShellRoute-class.html diff --git a/packages/go_router/pubspec.yaml b/packages/go_router/pubspec.yaml index b70f0b23407..0e4bb0f75f8 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: 10.1.2 +version: 10.1.3 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