flutter_file_saver
0.10.0, released 5 months ago by rouxguillau.me
Save files to the device using native save dialogs in Flutter.
What it does
Provides an interface to write files as bytes or strings directly to the device. Uses native components like ACTION_CREATE_DOCUMENT on Android, UIDocumentPickerViewController on iOS, NSSavePanel on macOS, and the showSaveFilePicker API or download attributes on the Web.
AI-written summary of version 0.10.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to prompt the user to save a file to a specific location using a native dialog.
- You want to save Uint8List bytes or text strings from a Flutter app across Android, iOS, web, or macOS.
Skip it when
- You need support for Windows or Linux platforms.
- You want background file downloading or automatic saving without opening a native user prompt.
Strengths
- Uses native save dialogs on Android, iOS, macOS, and web.
- Supports both byte arrays and string contents.
- Compatible with WASM.
Weaknesses
- Does not support Windows and Linux platforms.
- Web implementation can throw a SecurityError if not called immediately after user interaction.
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 5
Requires platform-specific configurations like setting minimum SDK version on Android, adding document browser/sharing permissions in Info.plist on iOS (requires iOS 16+), and adding user-selected read-write entitlements on macOS.
FlutterFileSaver().writeFileAsString(
fileName: 'file.txt',
string: 'Hello World!',
);Alternatives
Packages that do the same job and could replace flutter_file_saver.
- file_saver_ffi
Save any file type to device storage, gallery, or a user‑chosen folder with progress and conflict handling.
76Compare - file_saver
Save files from bytes, paths, streams, and URLs across Android, iOS, Web, Windows, macOS, and Linux.
87Compare - file_picker_platform_interface
Common platform interface for the file_picker federated plugin.
85Compare - file_selector_macos
macOS implementation of the file_selector plugin
82Compare