show<T> static method
- BuildContext context,
- Uint8List image
Displays a CropAvatarView wrapped in a ModalPopup.
Implementation
static Future<CropAreaInput?> show<T>(BuildContext context, Uint8List image) {
final Size size = MediaQuery.sizeOf(context);
return ModalPopup.show<CropAreaInput?>(
context: context,
isDismissible: false,
desktopPadding: const EdgeInsets.symmetric(horizontal: 20, vertical: 20),
modalConstraints: BoxConstraints(maxWidth: size.width * 0.6),
child: CropAvatarView(image),
);
}