Home > Blockchain >  how to: save image data to gallery [Flutter]
how to: save image data to gallery [Flutter]

Time:07-28

I have 1 question: I use a library and it returns the Image data type, so how do I save or share the image in the library of my device?

CodePudding user response:

https://pub.dev/packages/gallery_saver

This plugin saves images and videos to gallery/photos.

You need to provide a path to the file that you want to save like below:

GallerySaver.saveImage(path)

CodePudding user response:

You can use this package https://pub.dev/packages/gallery_saver. If you dont understand any documentation given on this page then you can simply follow the following tutorial by Johannes

https://www.youtube.com/watch?v=JILcQLZvjKE
  • Related