JaspervanRiet / duck_router

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

feat!: replace root() with popUntil #14

Closed JaspervanRiet closed 3 months ago

JaspervanRiet commented 3 months ago

Description

The project at https://github.com/DelcoigneYves/duckrouter-example shows issues with our current API. We can not use a StatefulLocation to host a modal sheet in when we want to show a page in the background, but at that point using root() will bring one back all the way outside the modal sheet.

This use case of wanting to stay in the modal in that case is a standard mobile flow, and thus we need to support it. This PR:

Related Issues

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?