79580336

Date: 2025-04-18 02:06:34
Score: 0.5
Natty:
Report link

The image_picker package needs two additional packages, image_picker_android and image_picker_platform_interface. Then you can continue using ImagePicker().pickMultiMedia() on both Android and iOS.

setup the main.dart file:

void main() {
 final ImagePickerPlatform implementation = ImagePickerPlatform.instance;
 if (implementation is ImagePickerAndroid) {
  implementation.useAndroidPhotoPicker = true;
 }
 
 ...
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Spencer