flutter_image_cropper
flutter_image_cropper copied to clipboard
Crash on Flutter `3.3.10` and iOS `16.2`
Steps to reproduce:
- Try to crop an image with Flutter
3.3.10
on iOS 16.2 (simulator or real device) - App will crash
Tested in the 3.3.8
and is working fine.
Package version: 3.0.1
,
Thanks.
same here, tested on 3 different devices with ios 16.2 + and flutter 3.3.0
Any solution for this ??
any solution for this ?
I cannot reproduce this issue with example project, please check your project, it may conflicts with other plugins.
I cannot reproduce this issue with example project, please check your project, it may conflicts with other plugins.
Like ??
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',
)
]);
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
FYI @hnvn