Tony Tony
Tony Tony

Reputation: 33

Why is ImagePicker unable to pick multiple images

I'm trying to pick multiple images at once using the image_picker 0.7.5+3 package so my code is simple , just one line to open the gallery to select from it

final images = await ImagePicker.platform.pickMultiImage(); 

but it's showing this error

enter image description here

i tried running flutter clean and deleting the app from emulator and retarting everything but it's the same problem,

note : using final images = await ImagePicker().getImage(source: ImageSource.gallery); it allows me to choose an image without any problems

Upvotes: 3

Views: 4947

Answers (3)

Nadav Holtzman
Nadav Holtzman

Reputation: 278

Try a long click on one image, then it will let you pick multiple images.

Upvotes: 1

Arindam Mitra
Arindam Mitra

Reputation: 61

final result = await ImagePicker().pickMultiImage(
  imageQuality: 70,
  maxWidth: 1440,

);

This should work as usual. If you are testing on android emulator and the default file manager, you have to long press the first image to multi-select.

Upvotes: 3

Benjamin
Benjamin

Reputation: 6161

I can't find anything in their API reference for pickMultiImage. I don't think it exists, unfortunately. There's a package called images_picker, maybe that helps you.

Upvotes: 0

Related Questions