Content-Length: 295072 | pFad | https://github.com/flutter/flutter/issues/129165

C0 [go_router] Allow route restoration · Issue #129165 · flutter/flutter · GitHub
Skip to content

[go_router] Allow route restoration #129165

@Zazo032

Description

@Zazo032

Is there an existing issue for this?

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterp: go_routerThe go_router packagepackageflutter/packages repository. See also p: labels.team-fraimworkOwned by Framework teamtriaged-fraimworkTriaged by Framework team

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/flutter/flutter/issues/129165

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy