Search packages, repositories and app categories

GitHub repositorySamoy/image_save

image_save

Save image to album or sandbox

image_save project cover
Stars
23
Forks
28
Last push (UTC)
Dec 3, 2021
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

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" />
  • iOS

Add the following statement in Info.plist

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

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();
Samoy GitHub avatar
GitHub author

Samoy ↗

Zhengzhou,ChinaOfficial website ↗
LanguagesJavaObjective-CDartRuby

Categories

Packages published by this repository

Dependencies used

Dependency list 3 items

  • flutter{"sdk":"flutter"}
  • flutter_testDevelopment{"sdk":"flutter"}
  • dioDevelopment4.0.0

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗