howljs / hl_image_picker

Simplify media selection, cropping, and camera functionality in your Flutter app. Choose images/videos from the library, crop images, and capture new photos/videos with ease.
https://pub.dev/packages/hl_image_picker
21 stars 12 forks source link

iOS Future not completed when swipe to close #39

Open RubyRook opened 3 weeks ago

RubyRook commented 3 weeks ago

In iOS, "openPicker" future not completed when swipe to close modal instead of tab "Cancel" or "Done" button. I try to check response on ".whenComplete" and ".then" and there is no response and future not completed. Unless i set timeout.

RubyRook commented 2 weeks ago

I try to check your code and it look look like shouldDismissPhotoPicker not work. Instead, I set picker.isModalInPresentation = true inside private func openPicker. But it work start from iOS 13 and above.