Open vijayulektz opened 5 months ago
@vijayulektz
Try this one!
await ImageCropper().cropImage(
sourcePath: image.path,
+ aspectRatio: CropAspectRatio(ratioX: 1, ratioY: 1), // your aspect ratio
aspectRatioPresets: [
CropAspectRatioPreset.square
],
uiSettings: [
AndroidUiSettings(
lockAspectRatio: true),
IOSUiSettings(
resetAspectRatioEnabled:false,
aspectRatioLockEnabled: true,
)
],
)
@vijayulektz facing the same issue. Have u find any solution ?
my code await ImageCropper().cropImage( sourcePath: image.path, aspectRatioPresets: [ CropAspectRatioPreset.square ], uiSettings: [ AndroidUiSettings( lockAspectRatio: true), IOSUiSettings( resetAspectRatioEnabled:false, aspectRatioLockEnabled: true, ) ], )
i want ios app user can't change aspect ratio size in image croper