Skip to content

[image_picker]: Document that limit is not always supported #147773

Closed
flutter/packages
#6678
@hodfords-khai-mobile

Description

@hodfords-khai-mobile

Steps to reproduce

implement pickMultipleImage with limit 2.
I've tested on Pixel 7 - API 34, iPhone15 - iOS17, iPhone12 Pro max - iOS17.4.1

Expected results

can only choose a maximum of 2 images

Actual results

can choose more than 2 images (no limit)

Code sample

Code sample
Future<void> _takePhotoOnClicked(BuildContext context) async {
    final ImagePicker picker = ImagePicker();
    final List<XFile>? image = await picker.pickMultiImage(limit: 2);
  }

Screenshots or Video

Screenshots / Video demonstration

Screenshot_1714786749

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listfound in release: 3.19Found to occur in 3.19found in release: 3.22Found to occur in 3.22has 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.platform-androidAndroid applications specificallyplatform-iosiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-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