flutter_image_cropper icon indicating copy to clipboard operation
flutter_image_cropper copied to clipboard

Crash on Flutter `3.3.10` and iOS `16.2`

Open thiagocarvalhodev opened this issue 1 year ago • 7 comments

Steps to reproduce:

  1. Try to crop an image with Flutter 3.3.10 on iOS 16.2 (simulator or real device)
  2. App will crash

Tested in the 3.3.8 and is working fine.

Package version: 3.0.1,

Thanks.

thiagocarvalhodev avatar Jan 05 '23 13:01 thiagocarvalhodev

same here, tested on 3 different devices with ios 16.2 + and flutter 3.3.0

dreampowder avatar Jan 06 '23 08:01 dreampowder

Any solution for this ??

lanrehnics avatar Jan 17 '23 22:01 lanrehnics

any solution for this ?

adlifaldiz avatar Jan 25 '23 06:01 adlifaldiz

I cannot reproduce this issue with example project, please check your project, it may conflicts with other plugins.

hnvn avatar Jan 25 '23 08:01 hnvn

I cannot reproduce this issue with example project, please check your project, it may conflicts with other plugins.

Like ??

lanrehnics avatar Feb 10 '23 12:02 lanrehnics

Are you using Image Picker ?? if yes, try to use File Picker.

final result = await FilePicker.platform.pickFiles(type: FileType.media);
 final file = File(result.files.single.path);
 final    croppedFile = await ImageCropper().cropImage(sourcePath: file.path, aspectRatioPresets: [
            CropAspectRatioPreset.square,
            CropAspectRatioPreset.ratio3x2,
            CropAspectRatioPreset.original,
            CropAspectRatioPreset.ratio4x3,
            CropAspectRatioPreset.ratio16x9
          ], uiSettings: [
            AndroidUiSettings(
                toolbarTitle: 'Cropper',
                toolbarColor: Colors.grey,
                toolbarWidgetColor: Colors.white,
                initAspectRatio: CropAspectRatioPreset.original,
                lockAspectRatio: false),
            IOSUiSettings(
              title: 'Cropper',
                )
          ]);
 

lanrehnics avatar Feb 25 '23 15:02 lanrehnics

Hi @thiagocarvalhodev did you tried pick a different image ratio?

I don't if it's related, but it's working with landscape or photo images, but not with Phone screenshots.

Example this one: the app crash - not really a crash because no logs and not error/warning displayed but the app is stuck, even hot reload not working, need to stop debug and relaunch debug

IMG_2282

FYI @hnvn

stact avatar Oct 23 '23 20:10 stact