media_gallery_saver 1.1.0 copy "media_gallery_saver: ^1.1.0" to clipboard
media_gallery_saver: ^1.1.0 copied to clipboard

This plug-in allows you to save files to the iOS and Android galleries from url, asset, and file.

media_gallery_saver #

This plug-in allows you to save files to the iOS and Android galleries from url, asset, and file. If authorization is required when saving, an authorization dialog will appear.

Supported Files #

  • jpg
  • png
  • gif
  • webp
  • heic
  • mp4
  • mov

Usage #

# pubspec.yaml
dependencies:
  media_gallery_saver: ^1.1.0

iOS #

To obtain permission to save, you must set NSPhotLibraryUsageDescription in the info.plist of the project you wish to use.

<key>NSPhotoLibraryUsageDescription</key>
<string>Why authority is needed</string>

Android #

uses-permission is set in the internal AndroidManifest.

Example #

File file = File("Path of the file you want to save.");

MediaGallerySaver().saveMediaFromFile(
  file,
  quality: 100, // default 100%
);
1
likes
150
points
180
downloads

Publisher

verified publishercam-inc.dev

Weekly Downloads

This plug-in allows you to save files to the iOS and Android galleries from url, asset, and file.

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, http, path, path_provider

More

Packages that depend on media_gallery_saver