gallerytrigger 1.0.1 gallerytrigger: ^1.0.1 copied to clipboard
A Flutter plugin able to trigger the iOS and Android galleries in order to let them update and show a new resource.
import '../lib/gallerytrigger.dart';
main() async {
String path = await downloadPicFromNetwork();
String album = "Example";
GalleryTrigger.addResourceInGallery(filePath: path, albumName: null);
}
downloadPicFromNetwork() {
// This is an example
return "foo.jpg";
}