https://github.com/rignaneseleo/gallery_trigger
A Flutter plugin able to trigger the iOS and Android galleries in order to let them update and show a new resource.
https://github.com/rignaneseleo/gallery_trigger
android dart dart-package dartlang flutter gallery gallery-plugin ios mediastore plugin
Last synced: 7 months ago
JSON representation
A Flutter plugin able to trigger the iOS and Android galleries in order to let them update and show a new resource.
- Host: GitHub
- URL: https://github.com/rignaneseleo/gallery_trigger
- Owner: rignaneseleo
- License: mit
- Created: 2020-03-27T10:14:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-27T14:17:32.000Z (over 5 years ago)
- Last Synced: 2025-01-25T16:42:30.549Z (8 months ago)
- Topics: android, dart, dart-package, dartlang, flutter, gallery, gallery-plugin, ios, mediastore, plugin
- Language: Swift
- Size: 24.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://developer.android.com/reference/android/provider/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