Skip to content
pubscout

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.

$ flutter pub add saver_gallery
Source repository

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.

Works with

Packages commonly used together with saver_gallery: ones it builds on, ones built on it, and its own family.