File tree 3 files changed +7
-4
lines changed
3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
- ## NEXT
1
+ ## 14.2.4
2
2
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 `
4
5
5
6
## 14.2.3
6
7
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
3
3
deep-linkable.
4
4
5
5
# Upgrade an app that uses Navigator
6
+
6
7
To upgrade an app that is already using the Navigator for routing, start with
7
8
a single route for the home screen:
8
9
@@ -37,6 +38,7 @@ aren't deep-linkable. You can gradually add more routes to the GoRouter
37
38
configuration.
38
39
39
40
# Upgrade an app that uses named routes
41
+
40
42
An app that uses named routes can be migrated to go_router by changing each
41
43
entry in the map to a GoRoute object and changing any calls to
42
44
` Navigator.of(context).pushNamed ` to ` context.go() ` .
@@ -57,7 +59,7 @@ Then the GoRouter configuration would look like this:
57
59
58
60
``` dart
59
61
GoRouter(
60
- initialRoute : '/details',
62
+ initialLocation : '/details',
61
63
routes: [
62
64
GoRoute(
63
65
path: '/',
Original file line number Diff line number Diff line change 1
1
name : go_router
2
2
description : A declarative router for Flutter based on Navigation 2 supporting
3
3
deep linking, data-driven routes and more
4
- version : 14.2.3
4
+ version : 14.2.4
5
5
repository : https://github.com/flutter/packages/tree/main/packages/go_router
6
6
issue_tracker : https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+go_router%22
7
7
You can’t perform that action at this time.
0 commit comments