Why is ImagePicker unable to pick multiple images

1,507

Solution 1

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.

Solution 2

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

Solution 3

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.

Share:
1,507
Admin
Author by

Admin

Updated on December 30, 2022

Comments

  • Admin
    Admin over 1 year

    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