Why is ImagePicker unable to pick multiple images

Viewed 1989

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

3 Answers
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.

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

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.

Related