I use the following code to save my image:
var result = await ImageGallerySaver.saveImage(
pngBytes,
quality: 100,
name: name,
isReturnImagePathOfIOS: true,
);
print (result['filePath']) // Gives content:/media/external/images/media/47939
Then I want to use the share_plus to share that file:
await Share.shareFiles(
[filePath],
);
But I am getting the following error:
[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: PlatformException(content:/media/external/images/media/47939: open failed: ENOENT (No such file or directory), null, null, null)