Possibility to drag files into macOS app

67 views
Skip to first unread message

Leon Hoppe

unread,
Sep 26, 2019, 10:13:45 AM9/26/19
to Flutter Development (flutter-dev)
Hey,

as I found out, its currently not possible to drag and drop files in a macOS app written in flutter?
Or is there a way to realize that with a plugin?



Greetings
Leon Hoppe

Stuart Morgan

unread,
Sep 26, 2019, 1:01:42 PM9/26/19
to Leon Hoppe, Flutter Development (flutter-dev)
On Thu, Sep 26, 2019 at 7:13 AM Leon Hoppe <leonh...@gmail.com> wrote:
as I found out, its currently not possible to drag and drop files in a macOS app written in flutter?

That's correct. https://github.com/flutter/flutter/issues/30719 would be the issue to watch for supporting that.
 
Or is there a way to realize that with a plugin?

It might be possible to hack together support with a plugin. You'd probably need to experiment with having a transparent view layered over the Flutter view that registered as a drop target, and getting things configured such that it doesn't affect normal event handling but does intercept drops may be tricky (or potentially not even possible; that would be a very unusual view configuration, so the OS may or may not support it).

-Stuart
Reply all
Reply to author
Forward
0 new messages