flutter_file_saver 0.6.0
flutter_file_saver: ^0.6.0 copied to clipboard
Interface to provide a way to save files on the device in Flutter.
flutter_file_saver #
Interface to provide a way to save files on the device in Flutter.
Platform Support #
Android | iOS | Web | Windows | Linux | MacOS | |
---|---|---|---|---|---|---|
writeFileAsBytes |
✅ | ✅ | ✅ | ❌️ | ❌️ | ✅ |
writeFileAsString |
✅ | ✅ | ✅ | ❌️ | ❌️ | ✅ |
Setup #
Import the package #
dependencies:
flutter_file_saver: any
Android #
android {
defaultConfig {
minSdkVersion 19
}
}
iOS #
Add the following permissions to your ios/Runner/Info.plist
:
<key>UISupportsDocumentBrowser</key>
<true/>
<key>UIFileSharingEnabled</key>
<true/>
<key>LSSupportsOpeningDocumentsInPlace</key>
<true/>
MacOS (Only for MacOS 10.9 and above) #
Add the following permissions to your macos/Runner/DebugProfile.entitlements
:
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
Todo #
- Support for Windows & Linux
- Support custom local paths