-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Description
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
Use case
In Android, when you open the native image picker, if the device has low memory, the app in the background can get killed by the Android OS. We would like to be able to restore GoRouter's navigation stack, so that, if we're in a linear navigation stack A->B->C, if the user at C route opens the image picker, if Android kills the Flutter app, we can restore the app to the C route. I tried with the latest version (8.0.5), but I couldn't find any way to implement something like this, neither in any of the provided samples.
Proposal
Ideally, an approach similar to https://pub.dev/packages/qlevar_router#restoration-management could be provided. If an automatic approach is not feasible, any way that would allow us to restore the navigation stack would be helpful.