openCropper static method
Open full-screen cropper and return cropped bytes
Implementation
static Future<Uint8List?> openCropper(
BuildContext context,
Uint8List bytes, {
double? aspectRatio, // e.g. 1.0, 16/9, or null for freeform
}) async {
return await Navigator.push(
context,
MaterialPageRoute(
builder: (_) => CropPage(imageBytes: bytes, aspectRatio: aspectRatio),
),
);
}