mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-09-04 17:16:50 +02:00
fix(lints): await asynchronous work in guarded blocks
This commit is contained in:
@@ -905,7 +905,7 @@ class _AudioAnalysisCardState extends State<AudioAnalysisCard> {
|
||||
final bytes = await file.readAsBytes();
|
||||
final completer = Completer<ui.Image>();
|
||||
ui.decodeImageFromList(bytes, completer.complete);
|
||||
return completer.future;
|
||||
return await completer.future;
|
||||
} catch (_) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user