3

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

Tony Tony
  • 33
  • 1
  • 3

3 Answers3

2
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.

1

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

Nadav Holtzman
  • 210
  • 4
  • 13
0

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.

Benjamin
  • 5,783
  • 4
  • 25
  • 49