flutter-package / images_picker

Flutter plugin for selecting images/videos from the Android and iOS gallery, and taking pictures/videos with the camera
MIT License
65 stars 87 forks source link

Request Timeout #83

Closed demait closed 2 years ago

demait commented 2 years ago

Environment

Technology Version
Flutter version 2.5.3
Plugin version 1.2.11
Android version -----
iOS version 15.4.1
Xcode version

Device information: iPhone 12, iPhone 11, iPhone 7

Description

When selecting several images, first the message (please wait) appears, after some time "Request Timeout" (Translated from German "Zeitüberschreitung der Anforderung") appears. Then no image is selected.

Expected behavior: I expect that the images will also be selected.

Current behavior: No Image is selected and an error shows up.

Steps to reproduce

Pick more then 75-80 Images, which are located in the iCloud.

Code: floatingActionButton: FloatingActionButton( onPressed: () async { List? res = await ImagesPicker.pick( count: 816, gif: false, pickType: PickType.image, language: Language.System, cropOpt: CropOption( aspectRatio: CropAspectRatio.wh16x9, ), ); if (res != null) { setState(() { loading = true; }); if (imagePaths != null) { setState(() { imagePaths = Set.of(imagePaths! + res.map((e) => e.path).toList()) .toList(); }); } else { setState(() { loading = true; imagePaths = res.map((e) => e.path).toList(); }); } } }, tooltip: 'Bilder auswählen', child: Icon(Icons.add_a_photo), ),

Can you help me out?