flutter_file_saver 0.6.0 copy "flutter_file_saver: ^0.6.0" to clipboard
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 #

Pub Version

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
    }
}

Check example

iOS #

Add the following permissions to your ios/Runner/Info.plist:

<key>UISupportsDocumentBrowser</key>
<true/>
<key>UIFileSharingEnabled</key>
<true/>
<key>LSSupportsOpeningDocumentsInPlace</key>
<true/>

Check example

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/>

Check example

Todo #

  • Support for Windows & Linux
  • Support custom local paths