csells / go_router

The purpose of the go_router for Flutter is to use declarative routes to reduce complexity, regardless of the platform you're targeting (mobile, web, desktop), handling deep linking from Android, iOS and the web while still allowing an easy-to-use developer experience.
https://gorouter.dev
442 stars 96 forks source link

allow redirect to return the current location as a stop for redirection? #49

Closed csells closed 2 years ago

csells commented 2 years ago

that would allow redirect to be hardcoded w/o any conditional logic, e.g.

GoRouter(redirect: (_)=>'/login', ...)

this is useful for people getting up to speed but not in the general case...