From cc234ba6872b5ed6f02b6131a68d366a6315af27 Mon Sep 17 00:00:00 2001 From: Tirth Date: Thu, 1 Aug 2024 22:27:35 +0530 Subject: [PATCH 1/4] Update route.dart --- packages/go_router/lib/src/route.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/go_router/lib/src/route.dart b/packages/go_router/lib/src/route.dart index 8b23e54f31a..8ff9634c131 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', /// ), /// ], /// ), From 7f41eceb7e429a34d1dbaa9706dce49e4f299e55 Mon Sep 17 00:00:00 2001 From: Tirth Date: Thu, 1 Aug 2024 22:36:33 +0530 Subject: [PATCH 2/4] Update CHANGELOG.md --- packages/go_router/CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/go_router/CHANGELOG.md b/packages/go_router/CHANGELOG.md index 1e2df530527..75b981e331a 100644 --- a/packages/go_router/CHANGELOG.md +++ b/packages/go_router/CHANGELOG.md @@ -1,3 +1,7 @@ +## 14.2.2 + +- Fixes redirect example's signature in `route.dart`. + ## 14.2.1 - Makes GoRouterState lookup more robust. From cd767885201b0b00d6c6ce27d5fac66f644a2cb2 Mon Sep 17 00:00:00 2001 From: Tirth Date: Thu, 1 Aug 2024 22:36:50 +0530 Subject: [PATCH 3/4] Update pubspec.yaml --- packages/go_router/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/go_router/pubspec.yaml b/packages/go_router/pubspec.yaml index fc4f3508345..60d5443e09e 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.1 +version: 14.2.2 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 From 6e42bc4920c8bb3945c4894b7f5608412eda19fc Mon Sep 17 00:00:00 2001 From: Tirth Date: Fri, 2 Aug 2024 21:30:31 +0530 Subject: [PATCH 4/4] Update pubspec.yaml --- packages/go_router/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/go_router/pubspec.yaml b/packages/go_router/pubspec.yaml index 60d5443e09e..c45ec140d39 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