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 97 forks source link

feat: add `pushReplacement` and `pushReplacementNamed` #193

Closed osaxma closed 2 years ago

osaxma commented 2 years ago

This is my attempt for #188

Please let me know what you think.

csells commented 2 years ago

I've been thinking about how to produce a more general-purpose API for getting the current stack of pages and replacing it completely, which would make doing things like pushing, replacing, popping, etc. as easy as grabbing the current stack, rearranging it to your heart's content and then handing it back to go_router. Until that happens, it's premature to take PRs like this one.