flutter_file_picker
flutter_file_picker copied to clipboard
[iOS] Document picker is broken when MEDIA is disabled
Describe the bug
When you set Pod::PICKER_MEDIA = false
and Pod::PICKER_AUDIO = false
in Podfile
and you want to pick just documents, then the plugin is partially broken on iOS. If you trigger the popup via pickFiles()
and press "Cancel" to cancel it, everything works fine. But when you drag the topbar downwards instead of pressing "Cancel" button, then the Future does not complete. The cause of the issue is that presentationControllerDidDismiss
method (which is called when the topbar is dragged downwards) in FilePickerPlugin.m
is wrapped in #ifdef PICKER_MEDIA
so it is not present when the PICKER_MEDIA is disabled.
Platform
- [ ] Android
- [x] iOS
- [ ] Web
- [ ] Desktop
Platform OS version 15.5
This issue is stale because it has been open for 14 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
Hello @miguelpruivo, could you please reopen the issue? It is still actual, so it should be at least open:)