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
441 stars 96 forks source link

Future<void> signature for push-like operations #192

Closed Lootwig closed 2 years ago

Lootwig commented 2 years ago

Currently, all operations performing some sort of push don't allow executing an action when that pushed route is removed again, as is possible with the Future<void> Navigator.pop() API.

Use case is pushing a route from a modal sheet, but only closing that sheet when the user is done doing some stuff on the pushed route.

csells commented 2 years ago

Closed as a duplicate of https://github.com/csells/go_router/issues/138

In the meantime, check this out: https://gorouter.dev/navigator-integration

Lootwig commented 2 years ago

Interesting, so just use the plain old Navigator API. Thanks for the quick response.