diff --git a/packages/go_router/CHANGELOG.md b/packages/go_router/CHANGELOG.md index d38b99e530a3..1405fe78e380 100644 --- a/packages/go_router/CHANGELOG.md +++ b/packages/go_router/CHANGELOG.md @@ -1,3 +1,7 @@ +## 14.0.1 + +- Updates the redirection documentation for clarity + ## 14.0.0 - **BREAKING CHANGE** 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; diff --git a/packages/go_router/pubspec.yaml b/packages/go_router/pubspec.yaml index febb4db4ddbf..bd53a5f18a2e 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.0.0 +version: 14.0.1 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