Skip to content

[image_picker] Update documentation of maxDuration to reflect that it only applies to recording #83630

@danielgchap

Description

@danielgchap

Steps to Reproduce

  • Utilizing image_picker: ^0.7.5+3
  • Using iPhone 12, iOS 14, Android Google Pixel, Android 10.

Code:
var pickerFile = await ImagePicker() .getVideo(source: source, maxDuration: Duration(seconds: 30));

Expected results:
If you choose 'Camera' and record a video, the pub WILL limit it to 30 seconds (as per code above).
However, if you choose 'Gallery', it will display videos that are OVER 30 seconds.
I swear this package used to limit that so you could only see videos in the Gallery that are 30 seconds or less.

Actual results:
Videos in Gallery that are over 30 seconds are available for selection. They shouldn't be as per the maxDuration param.

Anybody else experiencing this? Any resolutions?

Logs
Flutter Doctor is fine. N/a.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listfound in release: 2.2Found to occur in 2.2good first issueRelatively approachable for first-time contributorshas reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: image_pickerThe Image Picker plugin.packageflutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions