dispatchNotification
method to DummyBuildContext
in tests. (This should be revisited when Flutter 2.11.0
becomes stable.)navigatorBuilder
to allow for different implementations based on the presence of an errorGoRouterState
to navigatorBuilder
functionBuildContext
from GoRouter.pop()
to remove the need to use context
parameter when calling the GoRouter
API; this changes the behavior of GoRouter.pop()
to only pop what's on the GoRouter
page stack and no longer calls Navigator.pop()
navigatorBuilder
function to build a custom shared scaffold outside of the animations provided by go_routerRouter.neglect
; thanks to nullrocket!from
query parameter to be completely self-contained in the redirect
function, simplifying usageWillPopScope
for go_router appsmounted
property of the screenGoRouterRefreshStream
implementation with an export, an example and some docsGoRouterRefreshStream
from jopmiddelkamp to easily map from a Stream
to a Listenable
for use with refreshListenable
; very useful when combined with stream-based state management like flutter_blocNavigatorObserver
via default args to MaterialPage
, etc.Duration.zero
in the NoTransitionPage
GoRoute.pageBuilder
to provide a simpler way to build pages via the GoRouter.build
methodGoRouter.errorPageBuilder
to provide a simpler way to build error pages via the GoRouter.errorBuilder
methodGoRouter.errorBuilder
to provide an error page without the need to implement a custom error page builderbuilder
and default error page builderlaunch.json
as VSCode-centric and unnecessary for discovery or easy launchingNoTransitionPage
classextra
param/foo/
should be the same as /foo
Navigator.pop()
via GoRouter.pop()
to make it easy to findstate
parameter to clarfy that not all properties will be set at every usagecontext.go
family of extension methodsGoRouter
isn't found in the widget tree via GoRouter.of(context)
; thanks aoatmon for the excellent bug report!navigatorBuilder
argument to the GoRouter
constructor; thanks to andyduke!errorPageBuilder
push
@visibleForTesting
name
to GoRouterState
to complete support for URI-free navigation knowledge in your codenull
extra
objectextra
object to pass through for navigationparams
into params
and queryParams
; see the Migrating to 2.0 section of the docs for instructions on how to migrate your code from 1.x to 2.0AppBar
Back button; thanks to SunlightBro for the one-line fix that I had no idea about until he pointed it outAutomaticKeepAliveClientMixin
with nested navigation to keep widget state between navigations; thanks to rydmike for this update/none
to make pushing the ‘fade transition’ button on the first run through more funnull
NavigatorObserver
objects to receive change notificationsmain()
push()
disables AppBar
Back buttonGoRoute.builder
=> GoRoute.pageBuilder
GoRoute.error
=> GoRoute.errorPageBuilder
push
and pushNamed
push
as well as go
GoRouterState
GoRouter
notify on popGoRouter
a ChangeNotifier
so you can listen for location
changesdebugOutputFullPaths
to debugLogDiagnostics
and added add'l debugging loggingLink
widget supportrefresh
method and refreshListener
.builder
ctor from GoRouter
(not reasonable to implement)pattern
to path
for consistency w/ other routers in the worldGoRouterLoginGuard
for the common redirect-to-login-page patternGoRouterState.pageKey
cupertino_icons
from main pubspec.yaml
Four04Page
and FamiliesPage
to ErrorPage
and HomePage
respectivelyurlPathStrategy
argument to GoRouter
ctorGoRouterState
for use when building pages and error pagesflutter run
GoRoute
ctor argGoRoute
instancesGoRoute.builder