zeeshux7860/ImageEditorPro

Unsupported operation: Functionality only available on Android

vitulgoyani opened this issue · 9 comments

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"

ops it mean save issue
right?

ok i will fix it ok

thank you bro it big help 👍🏼
any time i am free for you for flutter

ok i will fix it ok

any ETA ? .. lol i got the same error today

hi any progress man

got the same issue, is that fixed ?

I solved it by changing the directory path to support in IOS while saving image.

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);
                  });
                }
              
`