fix: resolve avoid_void_async lint

This commit is contained in:
Hitori 2026-03-06 15:02:39 +01:00
parent 4ae7545e61
commit bc9b9f3a92

View file

@ -24,7 +24,7 @@ class AvatarCropDialogController extends State<AvatarCropDialog> {
void onCancelAction() => Navigator.of(context).pop();
void onCropAction() async {
Future<void> onCropAction() async {
final image = await controller.croppedBitmap();
if (mounted) {
final data = await image.toByteData(format: ui.ImageByteFormat.png);