flutter_file_picker icon indicating copy to clipboard operation
flutter_file_picker copied to clipboard

[iOS] Document picker is broken when MEDIA is disabled

Open martingeorgiu opened this issue 2 years ago • 1 comments

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

martingeorgiu avatar Jul 29 '22 15:07 martingeorgiu

This issue is stale because it has been open for 14 days with no activity.

github-actions[bot] avatar Aug 06 '22 02:08 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Aug 20 '22 02:08 github-actions[bot]

Hello @miguelpruivo, could you please reopen the issue? It is still actual, so it should be at least open:)

martingeorgiu avatar Aug 20 '22 16:08 martingeorgiu