Skip to content

Commit 5a21bc3

Browse files
committed
Fix unawaited return in try block in painting.dart
1 parent a46d1e8 commit 5a21bc3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

engine/src/flutter/lib/ui/painting.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2579,7 +2579,7 @@ Future<Codec> instantiateImageCodecWithSize(
25792579
final TargetImageSize targetSize = getTargetSize(descriptor.width, descriptor.height);
25802580
assert(targetSize.width == null || targetSize.width! > 0);
25812581
assert(targetSize.height == null || targetSize.height! > 0);
2582-
return descriptor.instantiateCodec(
2582+
return await descriptor.instantiateCodec(
25832583
targetWidth: targetSize.width,
25842584
targetHeight: targetSize.height,
25852585
);

0 commit comments

Comments
 (0)