Unsupported operation: Functionality only available on Android
vitulgoyani opened this issue · 9 comments
vitulgoyani commented
i just select image form source and draw line then click on done then console print this statement
"Unsupported operation: Functionality only available on Android"
zeeshux7860 commented
ops it mean save issue
right?
vitulgoyani commented
yes
zeeshux7860 commented
ok i will fix it ok
vitulgoyani commented
thank you bro it big help 👍🏼
any time i am free for you for flutter
PavieOlivier commented
ok i will fix it ok
any ETA ? .. lol i got the same error today
vitulgoyani commented
hi any progress man
dinesh-commits commented
got the same issue, is that fixed ?
dinesh-commits commented
I solved it by changing the directory path to support in IOS while saving image.
MohanKumar2123 commented
Hi Folks, I short out the issue. use below code for IOS you will get a answer, File name "ImageEditor.dart", Add the code inside the FlatButton named as "Done".
if (Platform.isIOS) {
screenshotController
.capture(delay: Duration(milliseconds: 10))
.then((File image) async {
//print("Capture Done");
setState(() {
_imageFile = image;
});
final result = await ImageGallerySaver.saveImage(
image.readAsBytesSync());
print("File Saved to Gallery, $image");
print("image print : $result");
Navigator.pop(context, image);
}).catchError((onError) {
print(onError);
});
}
`