saver_gallery
5.1.0, released 6 months ago by an unverified publisher
Save images, videos, and other media files to the Android, iOS, and HarmonyOS gallery.
What it does
The saver_gallery plugin enables you to save images and video files directly to the device gallery on Android, iOS, and HarmonyOS. It supports saving into named albums, batch saving multiple files, and checking if media already exists.
AI-written summary of version 5.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to save downloaded images or videos back into the device gallery.
- You require batch saving multiple media files at once.
- You need to organize saved files into specific folders or albums on Android, iOS, and HarmonyOS.
Skip it when
- You only need to pick images from the gallery rather than save them.
- Your target platform is not supported by the plugin.
Strengths
- Supports saving both images and videos across Android, iOS, and HarmonyOS.
- Supports batch saving operations for multiple files or images.
- Allows creating and utilizing named albums and folder hierarchies.
Weaknesses
- Requires manual configuration of platform-specific permissions in Info.plist and AndroidManifest.xml.
- Depends on external packages like permission_handler for handling storage permissions.
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 4
Requires adding NSPhotoLibraryUsageDescription and NSPhotoLibraryAddUsageDescription in iOS Info.plist, and appropriate storage/media permissions in AndroidManifest.xml.
import 'dart:typed_data';
import 'package:saver_gallery/saver_gallery.dart';
_saveImage(Uint8List imageBytes) async {
final result = await SaverGallery.saveImage(
imageBytes,
quality: 60,
fileName: "test_image.jpg",
albumPath: "appName/images",
skipIfExists: false,
);
print(result.toString());
}Alternatives
Packages that do the same job and could replace saver_gallery.
- add_to_gallery
Saves copies of images and videos to the Android Gallery and iOS Photos library.
69Compare - image
Pure Dart library to load, manipulate, encode, and decode various image formats.
96Compare - gallery_saver_plus
Saves images and videos from network URLs or local files to device gallery.
56Compare - image_cropper
A Flutter plugin for Android, iOS and Web supports cropping images
84Compare
Works with
Packages commonly used together with saver_gallery: ones it builds on, ones built on it, and its own family.
- uuidsaver_gallery depends on itGenerates and parses RFC‑4122/9562 UUIDs (v1‑v8) for Dart.
- mimesaver_gallery depends on itUtilities to resolve MIME types from file names, magic bytes, and to parse multipart streams.
- path_providersaver_gallery depends on itProvides Flutter APIs to locate common filesystem directories on Android, iOS, macOS, Linux and Windows.