Skip to content

Commit e2dac87

Browse files
[go_router] Fix an issue in the documentation that used state.queryParameters instead of state.uri.queryParameters (flutter#4881)
Closes flutter#133773
1 parent 8ec770b commit e2dac87

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

packages/go_router/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 10.1.3
2+
3+
- Fixes an issue in the documentation that was using `state.queryParameters` instead of `state.uri.queryParameters`.
4+
15
## 10.1.2
26

37
* Adds pub topics to package metadata.

packages/go_router/doc/configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ after the `?`), use [GoRouterState][]. For example, a URL path such as
5555
```dart
5656
GoRoute(
5757
path: '/users',
58-
builder: (context, state) => const UsersScreen(filter: state.queryParameters['filter']),
58+
builder: (context, state) => const UsersScreen(filter: state.uri.queryParameters['filter']),
5959
),
6060
```
6161

@@ -151,4 +151,4 @@ final _router = GoRouter(
151151
[GoRouter]: https://pub.dev/documentation/go_router/latest/go_router/GoRouter-class.html
152152
[GoRoute]: https://pub.dev/documentation/go_router/latest/go_router/GoRoute-class.html
153153
[GoRouterState]: https://pub.dev/documentation/go_router/latest/go_router/GoRouterState-class.html
154-
[ShellRoute]: https://pub.dev/documentation/go_router/latest/go_router/ShellRoute-class.html
154+
[ShellRoute]: https://pub.dev/documentation/go_router/latest/go_router/ShellRoute-class.html

packages/go_router/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: go_router
22
description: A declarative router for Flutter based on Navigation 2 supporting
33
deep linking, data-driven routes and more
4-
version: 10.1.2
4+
version: 10.1.3
55
repository: https://github.com/flutter/packages/tree/main/packages/go_router
66
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+go_router%22
77

0 commit comments

Comments
 (0)