-
Notifications
You must be signed in to change notification settings - Fork 464
Open
Description
My flutter app is latest and fully compatible with android 15. When I use the image_cropper package and try to crop the image in square shape by using CropAspectRatioPreset.square. It does not crop the image just return null in croppedFile variable. Does anyone know what is the issue and how can we solve it?
CroppedFile? croppedFile = await ImageCropper().cropImage(
sourcePath: _image.path,
uiSettings: [
AndroidUiSettings(
toolbarTitle: 'Cropper',
toolbarColor: Colors.deepOrange,
toolbarWidgetColor: Colors.white,
initAspectRatio: CropAspectRatioPreset.square,
lockAspectRatio: true,
aspectRatioPresets: [
CropAspectRatioPreset.original,
CropAspectRatioPreset.square,
],
),
],
);
Kindly share suggestion to solve this issue. I have wasted 2 days to solve this issue. Thanks in advance.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels