2 years ago

#68831

test-img

onrgns

image_picker problem: unsupported file format 'public.heic'

I'm using image_picker library to pick image from gallery. But I'm getting the following error:

findWriterForTypeAndAlternateType:119: unsupported file format 'public.heic'

My simple code:

onTap: () async {
     final ImagePicker _picker = ImagePicker();
     final XFile? image = await _picker.pickImage(source: ImageSource.gallery);
     print(image?.mimeType);
},

I'm testing the code on real device which is iPad with iOS 15.1. I also added NSPhotoLibraryUsageDescription to info.plist.

image_picker version: 0.8.4+4

What could be the cause of this error?

flutter

imagepicker

0 Answers

Your Answer

Accepted video resources