document_file_save_plus
2.0.0, released 4 years ago by an unverified publisher
Save byte data into the Download folder on Android or show a save dialog on iOS.
What it does
Saves single or multiple files from raw byte data directly to the device storage. Handles platform-specific actions such as accessing the Download folder on Android or opening the save dialog on iOS.
AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to save generated files like PDFs, text documents, or images from bytes.
- You want to target Android's Download folder or trigger iOS file save dialogs.
Skip it when
- You need a general file picker to read files rather than save them.
- You require complex local file system management beyond saving binary payloads.
Strengths
- Supports saving both single and multiple files at once.
- No storage permissions required on Android Q and above.
Weaknesses
- Requires manual configuration of WRITE_EXTERNAL_STORAGE permission for Android versions below Q.
- Limited to saving byte arrays to downloads or showing save dialogs.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
For Android target below Q, add the WRITE_EXTERNAL_STORAGE permission in AndroidManifest.xml. No permissions needed for iOS.
import 'package:document_file_save_plus/document_file_save_plus.dart';
List<int> textBytes = utf8.encode("Some data");
DocumentFileSave.saveFile(textBytes, "my_sample_file.txt", "text/plain");Alternatives
Packages that do the same job and could replace document_file_save_plus.
- 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 - flutter_downloader
Plugin to create and manage background download tasks on Android and iOS.
80Compare - open_file_manager
A Flutter plugin to open the default system file manager app on Android and iOS.
74Compare
Works with
Packages commonly used together with document_file_save_plus: ones it builds on, ones built on it, and its own family.