Search code examples
iosflutteruiimagepickercontrolleruiimagepickercontrollermediatype

image_picker: Cancel button not visible in gallery, if camera was accessed first


This is how open gallery and camera in my flutter application. The problem is, I launch camera first then after I open gallery I'm missing cancel button and title on the top in the navigation bar.

But if exit and relaunch the app and I opened gallery first, I can see the title and cancel button in ios image picker.

File img = await ImagePicker.pickImage(source: ImageSource.gallery);


Solution

  • You can use this image picker plugin :- https://pub.dartlang.org/packages/multi_image_picker#-readme-tab-

    This plugin is based on the original image picker plugin with more features.