Skip to content

Commit ca07b70

Browse files
[go_router] Update sype safe routing topic to use mixin from go_router_builder 3.0.0 (#9422)
Fixes flutter/flutter#170574 ## Pre-Review Checklist [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
1 parent 8dad1d6 commit ca07b70

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
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+
## 15.2.3
2+
3+
- Updates Type-safe routes topic documentation to use the mixin from `go_router_builder` 3.0.0.
4+
15
## 15.2.2
26

37
- Fixes calling `PopScope.onPopInvokedWithResult` in branch routes.

packages/go_router/doc/type-safe-routes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Instead of using URL strings to navigate, go_router supports
2-
type-safe routes using the go_router_builder package.
2+
type-safe routes using the go_router_builder package.
33

44
To get started, add [go_router_builder][], [build_runner][], and
55
[build_verify][] to the dev_dependencies section of your pubspec.yaml:
@@ -28,15 +28,15 @@ part 'go_router_builder.g.dart';
2828
]
2929
)
3030
@immutable
31-
class HomeScreenRoute extends GoRouteData {
31+
class HomeScreenRoute extends GoRouteData with _$HomeScreenRoute {
3232
@override
3333
Widget build(BuildContext context, GoRouterState state) {
3434
return const HomeScreen();
3535
}
3636
}
3737

3838
@immutable
39-
class SongRoute extends GoRouteData {
39+
class SongRoute extends GoRouteData with _$SongRoute {
4040
final int id;
4141

4242
const SongRoute({
@@ -74,4 +74,4 @@ package documentation](https://pub.dev/documentation/go_router_builder/latest/).
7474

7575
[go_router_builder]: https://pub.dev/packages/go_router_builder
7676
[build_runner]: https://pub.dev/packages/build_runner
77-
[build_verify]: https://pub.dev/packages/build_verify
77+
[build_verify]: https://pub.dev/packages/build_verify

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: 15.2.2
4+
version: 15.2.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)