Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigating to previous page without any error on IOS #530

Open
ujwal-yadav-aot opened this issue Oct 7, 2024 · 0 comments
Open

Navigating to previous page without any error on IOS #530

ujwal-yadav-aot opened this issue Oct 7, 2024 · 0 comments

Comments

@ujwal-yadav-aot
Copy link

Im Cropping Image It works perfectly but if i click on yellow check as per image provided it is navigating to previous page without any error

my code is :

Future cropImage(String imagePath, CropStyle? cropStyle,
CropAspectRatio? aspectRatio) async {
File? croppedImage;
await ImageCropper().cropImage(
sourcePath: imagePath,
aspectRatio: aspectRatio,
uiSettings: [
AndroidUiSettings(
toolbarTitle: 'Crop Image',
toolbarWidgetColor: Colors.white,
showCropGrid: false,
toolbarColor: PrimaryPurple,
initAspectRatio: CropAspectRatioPreset.original,
lockAspectRatio: true,
cropStyle: cropStyle ?? CropStyle.circle,
hideBottomControls: true),
IOSUiSettings(
aspectRatioPickerButtonHidden: true,
aspectRatioLockEnabled: true,
hidesNavigationBar: true,
aspectRatioLockDimensionSwapEnabled: true,
resetButtonHidden: true,
rotateButtonsHidden: true,
title: 'Crop Image',
cropStyle: cropStyle ?? CropStyle.circle,
resetAspectRatioEnabled: false)
],
).then((value) {
if (value != null) {
croppedImage = File(value.path);
} else {
croppedImage = null;
}
});

if (Utility.isNotNullEmptyOrFalse(croppedImage)) {
  return croppedImage!.path;
} else {
  return "";
}

}

using lates version of image_cropper

Untitled design

@ujwal-yadav-aot ujwal-yadav-aot changed the title Navigating to previous page without any error on Ios Navigating to previous page without any error on IOS Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant