shareeff / background_image_gallery_saver

flutter plugin for saving image to the gallery.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

background_image_gallery_saver

It will save image to the gallery. It uses Kotlin coroutines default thead for saving images. So user willn't experience UI blocking situation.

How to Use

You need to include kotlin coroutines for your app build.gradle file

implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"

From Uint8List image

Uint8List pickedImage;
pickedImage = pickedImageMethod() //your method for picking Uint8List file
final result = await BackgroundImageGallerySaver.saveImage(pickedImage);

From file

String file;
file = pickedFileMethod() //your method for picking file url as string
final result = await BackgroundImageGallerySaver.saveFile(file);

Special Notes

** Only Android Support

** The plugin is based on hui-z / image_gallery_saver

and CarnegieTechnologies / gallery_saver

About

flutter plugin for saving image to the gallery.

License:MIT License


Languages

Language:Dart 55.1%Language:Kotlin 32.4%Language:Swift 4.4%Language:Ruby 4.3%Language:Objective-C 3.9%