Open YhomiAce opened 3 months ago
Got this error
Failed to fetch thumbnail of album ALL
When trying to use Gallery picker to pick images
Here is the code Sample
Widget _selectImageFromGalleryButton(BuildContext context) { return FloatingActionButton( onPressed: () async { List<MediaFile>? mediaFiles = await GalleryPicker.pickMedia(context: context) ?? []; print(mediaFiles); // keep printing []; setState(() { _selectedFiles = mediaFiles; }); }, child: const Icon(Icons.image), ); }
Got this error
When trying to use Gallery picker to pick images
Here is the code Sample
Widget _selectImageFromGalleryButton(BuildContext context) { return FloatingActionButton( onPressed: () async { List<MediaFile>? mediaFiles = await GalleryPicker.pickMedia(context: context) ?? []; print(mediaFiles); // keep printing []; setState(() { _selectedFiles = mediaFiles; }); }, child: const Icon(Icons.image), ); }