Repository navigation
Description
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
Steps to reproduce
Open up either the multi image selection or single image selection. Select an AVIF file (that can be sent to the iOS device). ImagePicker will show indefinite loader and return no response. No choice but to stop app and rebuild.
Expected results
I would probably expect some sort of error message. But the ideal expected result is some feedback saying that AVIF files cannot be chosen or if those images in the Photo app are disabled entirely for selection.
Actual results
Indefinite loader and crash
Code sample
final picker = ImagePicker();
var pickedFiles = await picker.pickMultiImage();
return pickedFiles;
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
No response
Flutter Doctor output
[✓] Flutter (Channel stable, 3.7.12, on macOS 13.1 22C65 darwin-arm64 (Rosetta), locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] VS Code (version 1.81.0)
[✓] Connected device (4 available)
! Error: (null) needs to connect to determine its availability. Check the connection between the device and its companion iPhone, and the connection between the iPhone and
Xcode. Both devices may also need to be restarted and unlocked. (code 1)
! Error: KJ’s iPhone is busy: Fetching debug symbols for KJ’s iPhone. Xcode will continue when KJ’s iPhone is finished. (code -10)
[✓] HTTP Host Availability
• No issues found!
Activity
[-]Selecting an AVIF file on iOS causes indefinite loader and no response / crash[/-][+][image_picker][iOS] Selecting an AVIF file on iOS causes indefinite loader and no response / crash[/+]darshankawar commentedon Aug 9, 2023
Thanks for the report. I think iOS 16 onwards, avif file format is supported. Probably same needs to be added for the plugin, as I see the same behavior as reported.
stable, master flutter doctor -v
stuartmorgan-g commentedon Aug 14, 2023
image_pickerdoesn't display loading UI; does this just mean that theawaitdoesn't return?kellysjung commentedon Aug 14, 2023
@stuartmorgan Oh my bad! I was working with some code that someone else created and didn't realize the loader was something that they had established and not from the package. So yes, the
awaitdoesn't return. It just sort of goes into a suspended state of nothing, with no choice but to terminate the process.[image_picker_ios] Return an error for undecodable image data (#12267)
github-actions commentedon Oct 22, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.