image_save 5.0.0 copy "image_save: ^5.0.0" to clipboard
image_save: ^5.0.0 copied to clipboard

You could use this package to save image to album or sandbox, support Android and iOS.

image_save #

version platform starts

Save image to album, support Android and iOS.

Permission #

  • Android #

Add the following statement in AndroidManifest.xml:

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
copied to clipboard
  • iOS #

Add the following statement in Info.plist

<key>NSPhotoLibraryUsageDescription</key>
<string>Add the description of the permission you need here.</string>
copied to clipboard

Usage #

See Example

// Save to album.
bool success = await ImageSave.saveImage(data, "demo.gif", albumName: "demo");

// Save to sandbox.
// Notice: Image saved in this way will be deleted when the application is uninstalled.
bool success = await ImageSave.saveImageToSandbox(data, "demo.gif");

// Get images from Sandbox.
List<Uint8List> imageDatas = await ImageSave.getImagesFromSandbox();
copied to clipboard
29
likes
150
points
268
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.19 - 2025.04.03

You could use this package to save image to album or sandbox, support Android and iOS.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on image_save