Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
doc: Fix an error replacing state.queryParameters to state.uri.queryP…
…arameters
  • Loading branch information
ValentinVignal committed Sep 10, 2023
commit 5b2c9cbcb6a6360387b7ad9d4ecf73b03cb41869
4 changes: 2 additions & 2 deletions packages/go_router/doc/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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']),
),
```

Expand Down Expand Up @@ -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
[ShellRoute]: https://pub.dev/documentation/go_router/latest/go_router/ShellRoute-class.html