1

When i used to upload image from camera some be on the top of image cropper

code

  try {
if (isItPickMenu) {
  Navigator.pop(context);
}
pickedFile = await ImagePicker().pickImage(
    source:
        imageSource); //todo if the user denied the permission 
ask him again.
} catch (error) {
print(error);
}
if (pickedFile != null) {
final croppedImage = await cropImage(
    cropStyle: CropStyle.rectangle,
    pickedImage: pickedFile,
    cropAspectRatio: const CropAspectRatio(ratioX: 3.0, ratioY: 2.0));
if (croppedImage != null) {
  return croppedImage;
}
}

enter image description here

and Some works great

enter image description here

Flutter Dev
  • 488
  • 3
  • 18

0 Answers0