File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1- ## NEXT
1+ ## 14.2.4
22
3- * Updates minimum supported SDK version to Flutter 3.19/Dart 3.3.
3+ - Updates minimum supported SDK version to Flutter 3.19/Dart 3.3.
4+ - Fix GoRouter configuration in ` upgrading.md `
45
56## 14.2.3
67
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ home screen and creating a GoRoute for each screen you would like to be
33deep-linkable.
44
55# Upgrade an app that uses Navigator
6+
67To upgrade an app that is already using the Navigator for routing, start with
78a single route for the home screen:
89
@@ -37,6 +38,7 @@ aren't deep-linkable. You can gradually add more routes to the GoRouter
3738configuration.
3839
3940# Upgrade an app that uses named routes
41+
4042An app that uses named routes can be migrated to go_router by changing each
4143entry in the map to a GoRoute object and changing any calls to
4244` Navigator.of(context).pushNamed ` to ` context.go() ` .
@@ -57,7 +59,7 @@ Then the GoRouter configuration would look like this:
5759
5860``` dart
5961GoRouter(
60- initialRoute : '/details',
62+ initialLocation : '/details',
6163 routes: [
6264 GoRoute(
6365 path: '/',
Original file line number Diff line number Diff line change 11name : go_router
22description : A declarative router for Flutter based on Navigation 2 supporting
33 deep linking, data-driven routes and more
4- version : 14.2.3
4+ version : 14.2.4
55repository : https://github.com/flutter/packages/tree/main/packages/go_router
66issue_tracker : https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+go_router%22
77
You can’t perform that action at this time.
0 commit comments