diff --git a/packages/go_router/CHANGELOG.md b/packages/go_router/CHANGELOG.md index 21fa68a8f217..256b030129e9 100644 --- a/packages/go_router/CHANGELOG.md +++ b/packages/go_router/CHANGELOG.md @@ -1,3 +1,7 @@ +## 14.2.3 + +- Fixes redirect example's signature in `route.dart`. + ## 14.2.2 - Adds section for "Stateful nested navigation" to configuration.md. diff --git a/packages/go_router/lib/src/route.dart b/packages/go_router/lib/src/route.dart index 21f2a039562f..0183f91ea543 100644 --- a/packages/go_router/lib/src/route.dart +++ b/packages/go_router/lib/src/route.dart @@ -132,7 +132,7 @@ typedef ExitCallback = FutureOr Function( /// routes: [ /// GoRoute( /// path: '/', -/// redirect: (_) => '/family/${Families.data[0].id}', +/// redirect: (_, __) => '/family/${Families.data[0].id}', /// ), /// GoRoute( /// path: '/family', @@ -169,7 +169,7 @@ abstract class RouteBase with Diagnosticable { /// routes: [ /// GoRoute( /// path: '/', - /// redirect: (_) => '/family/${Families.data[0].id}', + /// redirect: (_, __) => '/family/${Families.data[0].id}', /// ), /// GoRoute( /// path: '/family/:fid', @@ -188,11 +188,11 @@ abstract class RouteBase with Diagnosticable { /// routes: [ /// GoRoute( /// path: '/', - /// redirect: (_) => '/page1', // this takes priority over the sub-route. + /// redirect: (_, __) => '/page1', // this takes priority over the sub-route. /// routes: [ /// GoRoute( /// path: 'child', - /// redirect: (_) => '/page2', + /// redirect: (_, __) => '/page2', /// ), /// ], /// ), diff --git a/packages/go_router/pubspec.yaml b/packages/go_router/pubspec.yaml index 60d5443e09e2..c45ec140d391 100644 --- a/packages/go_router/pubspec.yaml +++ b/packages/go_router/pubspec.yaml @@ -1,7 +1,7 @@ name: go_router description: A declarative router for Flutter based on Navigation 2 supporting deep linking, data-driven routes and more -version: 14.2.2 +version: 14.2.3 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