Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Future<void> _notifyGallery(String path) async {
- try {
- await platform.invokeMethod('notifyGallery', {"path": path});
- } on PlatformException catch (e) {
- print("Failed to notify gallery: '${e.message}'.");
- }
- }
- Future<void> _shareImage(String path) async {
- try {
- await platform.invokeMethod('shareImage', {"path": path});
- } on PlatformException catch (e) {
- print("Failed to share: '${e.message}.");
- }
- }
- Future<void> _openImage(String path) async {
- try {
- await platform.invokeMethod('openImage', {"path": path});
- } on PlatformException catch (e) {
- print("Failed to share: '${e.message}.");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement