pick_or_save
2.2.4, released 4 years ago by deepanshuchaudhary.com
A Flutter package to pick, save, and manage files and directories on Android.
What it does
Allows picking single or multiple files with extension and mime type filters, photo picker support, directory picking with persistent permissions, file saving from paths or byte data, and retrieving file metadata.
AI-written summary of version 2.2.4, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to pick single or multiple files on Android.
- You need to save files from local paths or Uint8List byte data.
- You need to pick directories and manage persistent URI permissions.
Skip it when
- You are building for iOS, web, or desktop platforms since this package focuses on Android functionality.
- You need a cross-platform file picker covering multiple operating systems seamlessly.
Strengths
- Supports directory picking with persistent URI permissions.
- Allows disabling file caching to work directly with Android Uris and metadata.
- Supports saving multiple files from both file paths and Uint8List byte data.
Weaknesses
- Limited platform support primarily centered around Android.
- Requires managing native Android URI permissions and limits.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Works on Android 5.0 (API level 21) or later. Follow standard pubspec configuration.
List<String>? result = await PickOrSave().filePicker(
params: FilePickerParams(getCachedFilePath: true),
);
String filePath = result[0];Alternatives
Packages that do the same job and could replace pick_or_save.
- flutter_file_dialog
Dialogs for picking and saving files and directories on Android and iOS.
90Compare - file_picker
Use the native file explorer to pick single or multiple files, directories, and save files.
93Compare - pdf_combiner
Merge multiple PDF documents and images into a single file or extract images from PDFs.
85Compare - cross_file
An abstraction to allow working with files across multiple platforms.
90Compare
Works with
Packages commonly used together with pick_or_save: ones it builds on, ones built on it, and its own family.