gallerytrigger 1.0.1

Flutter Android iOS

A Flutter plugin able to trigger the iOS and Android galleries in order to let them update and show a new resource.

Flutter plugin: gallerytrigger #

A Flutter plugin able to trigger the iOS and Android galleries in order to let them update and show a new resource.

Why #

When you download a picture or video file with your Flutter app you won't see it in the gallery until your device refreshes the internal database. With this plugin you can manually trigger it and add the picture in MediaStore on Android or in Photos in iOS.

Use #

  String path = await downloadPicFromNetwork();
  String album = "Example";
  await GalleryTrigger.addResourceInGallery(filePath: path, albumName: album);

Possible Improvements #

  • Clean the procject (remove all the useless files and folders)
  • Return a consistent bool value dipending on the procedure success/failure
  • Merge the photo and video logics in swift
  • Add resources on iOS without declaring an album name
3
likes
90
pub points
22%
popularity

A Flutter plugin able to trigger the iOS and Android galleries in order to let them update and show a new resource.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

rignanese.leo@gmail.com

License

MIT (LICENSE)

Dependencies

flutter, mime_type

More

Packages that depend on gallerytrigger