cropImage function
void
cropImage({})
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);
}