Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 459c11a

Browse files
committed
Forgot to update test
1 parent 1429526 commit 459c11a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

testing/dart/codec_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ void main() {
9191
final ui.ImmutableBuffer buffer = await ui.ImmutableBuffer.fromUint8List(data);
9292
final ui.Codec codec = await ui.instantiateImageCodecWithSize(
9393
buffer,
94-
getTargetSize: (ui.ImageDescriptor descriptor) {
94+
getTargetSize: (int intrinsicWidth, int intrinsicHeight) {
9595
return ui.TargetImageSize(
96-
width: descriptor.width ~/ 2,
97-
height: descriptor.height ~/ 2,
96+
width: intrinsicWidth ~/ 2,
97+
height: intrinsicHeight ~/ 2,
9898
);
9999
},
100100
);

0 commit comments

Comments
 (0)