flutter_file_picker icon indicating copy to clipboard operation
flutter_file_picker copied to clipboard

Reimplement macos file picker using native APIs in the app rather than calling out to osascript

Open Hixie opened this issue 1 year ago • 3 comments
trafficstars

The current approach results in this weird UI experience where the file picker isn't focused correctly, and where there's a new system process for the dialog that is separate from the actual app. It also runs into problems if osascript is disabled for some reason (e.g. security policy).

There doesn't seem to be any reason why we could implement this using regular message channels to code implemented natively in the app, like a normal plugin.

Hixie avatar Apr 16 '24 06:04 Hixie

@Hixie I'll be able to tackle this myself, after fixing up a large part of the platform interface.

navaronbracke avatar Apr 18 '24 06:04 navaronbracke

Probably one of https://github.com/miguelpruivo/flutter_file_picker/issues/1145 and this should be closed, since they seem to be describing the same thing.

stuartmorgan-g avatar Apr 18 '24 19:04 stuartmorgan-g

I'll keep this one open, since the title signifies better what is meant to be done in my opinion.

navaronbracke avatar Apr 18 '24 20:04 navaronbracke

No update since April. Is anybody working on this or is this stale?

alterhuman avatar Nov 03 '24 11:11 alterhuman

Remember to "upvote" the issue by giving a 👍

ricardoboss avatar Nov 04 '24 09:11 ricardoboss

I've started method channel-based implementation for now and was wondering if this would be accepted approach? Or would you rather use something like ffi?

orestesgaolin avatar Jan 28 '25 22:01 orestesgaolin

I think a method channel implementation is fine. The API's are Future based anyway. Thanks for tackling this!

navaronbracke avatar Jan 29 '25 06:01 navaronbracke

Just opened a PR here, happy to receive a review now

orestesgaolin avatar Jan 29 '25 09:01 orestesgaolin