Skip to content

[image_picker] Update the cache on Android #84634

@ydag

Description

@ydag

Use case

Android system -- although very rarely -- sometimes kills the MainActivity after the image_picker finishes. When this happens, we lost the data selected from the image_picker. You can use retrieveLostData to retrieve the lost data in this situation.

In the current version, only one image can be saved to the local cache. But after multi-image support is merged we need to save a list of images to the local cache to retrieve them when it is necessary.

Proposal

We can deprecate the old cache and implement a new cache to save a list of images all the time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterp: image_pickerThe Image Picker plugin.packageflutter/packages repository. See also p: labels.platform-androidAndroid applications specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions