cropImage function

void cropImage({
  1. required BuildContext context,
  2. required Uint8List mainImage,
  3. String? text,
  4. String saveText = "Save",
  5. String resetText = "Reset",
  6. String previewText = "Preview",
  7. String title = "Crop image as 1/1 ratio",
  8. void onChanged(
    1. Uint8List image
    )?,
})

Implementation

void cropImage(
    {required BuildContext context,
    required Uint8List mainImage,
    String? text,
    String saveText = "Save",
    String resetText = "Reset",
    String previewText = "Preview",
    String title = "Crop image as 1/1 ratio",
    void Function(Uint8List image)? onChanged}) {
  Rixa.openDialog(
      child: CropImage(mainImage: mainImage, text: text, onChanged: onChanged),
      noAction: true,
      zeroPadding: Rixa.properties.anyMobile ? true : false,
      context: context);
}