mirror of
https://github.com/flutter/packages.git
synced 2025-06-30 23:03:11 +08:00
Fix deprecation message for GoRouterState.namedLocation (#3092)
Fix deprecation message for `GoRouterState.namedLocation` -- it should
point to `GoRouter.of(context).namedLocation`, not
`GoRouter.of(context).routeInformationParser.namedLocation` (the latter
does not exist).
Previously mentioned here: bdc07b69d4 (r88804919)
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
## 6.0.9
|
||||||
|
|
||||||
|
- Fixes deprecation message for `GoRouterState.namedLocation`
|
||||||
|
|
||||||
## 6.0.8
|
## 6.0.8
|
||||||
|
|
||||||
* Adds support for Iterables, Lists and Sets in query params for TypedGoRoute. [#108437](https://github.com/flutter/flutter/issues/108437).
|
* Adds support for Iterables, Lists and Sets in query params for TypedGoRoute. [#108437](https://github.com/flutter/flutter/issues/108437).
|
||||||
|
@ -122,8 +122,7 @@ class GoRouterState {
|
|||||||
|
|
||||||
/// Get a location from route name and parameters.
|
/// Get a location from route name and parameters.
|
||||||
/// This is useful for redirecting to a named location.
|
/// This is useful for redirecting to a named location.
|
||||||
@Deprecated(
|
@Deprecated('Use GoRouter.of(context).namedLocation instead')
|
||||||
'Uses GoRouter.of(context).routeInformationParser.namedLocation instead')
|
|
||||||
String namedLocation(
|
String namedLocation(
|
||||||
String name, {
|
String name, {
|
||||||
Map<String, String> params = const <String, String>{},
|
Map<String, String> params = const <String, String>{},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
name: go_router
|
name: go_router
|
||||||
description: A declarative router for Flutter based on Navigation 2 supporting
|
description: A declarative router for Flutter based on Navigation 2 supporting
|
||||||
deep linking, data-driven routes and more
|
deep linking, data-driven routes and more
|
||||||
version: 6.0.8
|
version: 6.0.9
|
||||||
repository: https://github.com/flutter/packages/tree/main/packages/go_router
|
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
|
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+go_router%22
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user