From f86a10b08c19e42ee086e0099ddac49dfcf68a87 Mon Sep 17 00:00:00 2001 From: Eli Geller Date: Tue, 27 Feb 2024 10:13:07 -0500 Subject: [PATCH 1/2] Update pubspec.yaml --- packages/go_router/CHANGELOG.md | 4 ++++ packages/go_router/pubspec.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/go_router/CHANGELOG.md b/packages/go_router/CHANGELOG.md index 774d71c756e8..1f0a17e940c6 100644 --- a/packages/go_router/CHANGELOG.md +++ b/packages/go_router/CHANGELOG.md @@ -1,3 +1,7 @@ +## 13.2.4 + +- Updates the redirection documentation for clarity + ## 13.2.3 - Fixes an issue where deep links without path caused an exception diff --git a/packages/go_router/pubspec.yaml b/packages/go_router/pubspec.yaml index 1fc99858822f..29dfaa27a447 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: 13.2.3 +version: 13.2.4 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 a2037c2cb08fdd33417ea2209d6ee79f5a7317ed Mon Sep 17 00:00:00 2001 From: Eli Geller Date: Tue, 27 Feb 2024 10:14:23 -0500 Subject: [PATCH 2/2] Update redirection.md --- packages/go_router/doc/redirection.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/go_router/doc/redirection.md b/packages/go_router/doc/redirection.md index e0ff022005a3..c8398e028ae5 100644 --- a/packages/go_router/doc/redirection.md +++ b/packages/go_router/doc/redirection.md @@ -10,7 +10,7 @@ either the GoRouter or GoRoute constructor: ```dart redirect: (BuildContext context, GoRouterState state) { - if (AuthState.of(context).isSignedIn) { + if (!AuthState.of(context).isSignedIn) { return '/signin'; } else { return null;