The macOS implementation of file_selector
.
This implementation has not yet been endorsed, meaning that you need to depend on file_selector_macos
in addition to depending on file_selector
.
Once your pubspec includes the macOS implementation, you can use the file_selector
APIs normally. You should not use the file_selector_macos
APIs directly.
You will need to add an entitlement for either read-only access:
<key>com.apple.security.files.user-selected.read-only</key> <true/>
or read/write access:
<key>com.apple.security.files.user-selected.read-write</key> <true/>
depending on your use case.