Skip to content

[image picker] - Documentation needs fixes and more explanation  #62304

@febg11

Description

@febg11

Hi,

I have recently updated my image picker version and I have encountered a few changes problems.

  1. Your readme says that
API 29+
No configuration required - the plugin should work out of the box.

API < 29
Add android:requestLegacyExternalStorage="true" as an attribute to the <application> tag in AndroidManifest.xml. The attribute is false by default on apps targeting Android Q.

Correct me if I'm wrong but aren't these the wrong way around?

  1. The version I was on also did not talk about MainActivity being destroyed by android in the readme... Is this a problem that was present on older versions or has this been caused by something in the newer versions of the imagepicker.

  2. I am having trouble implementing my version of retrieveLostData() mainly because I cant seem to be able to recreate the error. Is there a method I can use that will force the Main Activity to be destroyed so I can test my future builder logic?

  3. Furthermore I use the provider package to manage my application state which I alter when picking images. I can't tell if i need to update state again when the main activity is destroyed or if the current data will persist (as it hasn't ever happened). I imagine the answer to number 3 will help answer this.

Please can you help debug this as I currently have code written that has never ran and I can't recreate a scenario that will cause retrieveLostData() to be called.

Metadata

Metadata

Assignees

No one assigned

    Labels

    p: image_pickerThe Image Picker plugin.packageflutter/packages repository. See also p: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions