JaspervanRiet / duck_router

A Flutter router with intents
MIT License
4 stars 3 forks source link

Reset stack and add page #18

Closed DelcoigneYves closed 2 months ago

DelcoigneYves commented 3 months ago

Is there any way to just remove all the current pages, and push a new page? Scenario: logging out / deactivating the app.

JaspervanRiet commented 2 months ago

It seems clear that we need to bring back root, it was very useful and removed too quickly in #14. Then on top of that, like #17 mentions, we need to improve the interface of popUntil because currently you need to instantiate a new location and it's not very versatile.