fix: resolve avoid_void_async lint
This commit is contained in:
parent
4ae7545e61
commit
bc9b9f3a92
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue