Skip to content

[image_picker] Support image/video restrictions on macOS #150063

@stuartmorgan-g

Description

@stuartmorgan-g

The current macOS implementation of image_picker just delegates to file_selector and ignores all of the arguments that allow resizing images or restricting video length. We should consider implementing them, if we can do so without bringing in new library dependencies.

(Ideally we wouldn't have these be part of image_picker at all, and would leave that for post-processing by other code, but on iOS we get image data rather than a file, and so it's more efficient to do things like resize the image before writing it to disk, rather than add a write/read of the full sized image only to then resize it from Dart. But given that that doesn't apply on macOS, we may want to deliberately not implement this.)

Alternately, we could only do this once we do #125829

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: desktopRunning on desktopc: new featureNothing broken; request for a new capabilityp: image_pickerThe Image Picker plugin.packageflutter/packages repository. See also p: labels.platform-macBuilding on or for macOS specificallyteam-macosOwned by the macOS platform teamtriaged-macosTriaged by the macOS platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions