flutter_image_cropper icon indicating copy to clipboard operation
flutter_image_cropper copied to clipboard

Black screen appears on iOS

Open arsalalgorepublic opened this issue 2 years ago • 8 comments

I am facing an issue where the image is not loading in the iOS device even though the correct path is provided for cropping the image. This issue is causing problems in my project and I am unable to proceed further. CroppedFile? file = await ImageCropper.platform.cropImage( sourcePath: imageFile.path, uiSettings: [ AndroidUiSettings( toolbarTitle: 'Crop Image', toolbarColor: Color(0xFF016AE4), toolbarWidgetColor: Colors.white, initAspectRatio: CropAspectRatioPreset.original, lockAspectRatio: false, ), IOSUiSettings( title: 'Crop Image', ), ], ); Steps to reproduce:

Provide the correct path of the image to be cropped. Run the code to crop the image.

Xcode Logs in exception case: [ScrollView] UIScrollView is ignoring an attempt to set zoomScale to a non-finite value: inf

Expected behavior: The image should load successfully and the code should crop the image as expected.

Actual behavior: The image is not loading in the device even though the correct path is provided. This behavior is not the case every time.

Additional information: I have checked the path multiple times and it is correct. I have tried running the code on different devices but the issue persists. Any help in resolving this issue would be appreciated.

arsalalgorepublic avatar Mar 31 '23 07:03 arsalalgorepublic

@skabber @ldementhon @azchohfi @p30arena Guys please help me the only problem is that [ScrollView] UIScrollView is ignoring an attempt to set zoomScale to a non-finite value: inf

arsalalgorepublic avatar Apr 02 '23 08:04 arsalalgorepublic

any update on this issue?

arslan9380 avatar Apr 27 '23 05:04 arslan9380

https://user-images.githubusercontent.com/73348837/234770716-988d331b-bec5-44cb-8418-89308d391c17.mov

arslan9380 avatar Apr 27 '23 05:04 arslan9380

IMG_3912

arslan9380 avatar Apr 27 '23 05:04 arslan9380

I have the same issue. The cause of this may be due to using Apple's Live images. Whenever I try to crop a live image, then it fails to load the image, otherwise, it works properly.

AmirAshvins avatar Aug 10 '23 19:08 AmirAshvins