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

Commit 8318d5f

Browse files
authored
Update ui.instantiateImageCodec docs to reflect what it does. (#13233)
1 parent 5cc7416 commit 8318d5f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/ui/painting.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,10 +1653,9 @@ class Codec extends NativeFieldWrapperClass2 {
16531653
///
16541654
/// The [targetWidth] and [targetHeight] arguments specify the size of the output
16551655
/// image, in image pixels. If they are not equal to the intrinsic dimensions of the
1656-
/// image, then the image will be scaled after being decoded. If exactly one of
1657-
/// these two arguments is specified, then the aspect ratio will be maintained
1658-
/// while forcing the image to match the specified dimension. If both are not
1659-
/// specified, then the image maintains its real size.
1656+
/// image, then the image will be scaled after being decoded. If only one dimension
1657+
/// is specified, the omitted dimension will remain its original size. If both are
1658+
/// not specified, then the image maintains its real size.
16601659
///
16611660
/// The returned future can complete with an error if the image decoding has
16621661
/// failed.

0 commit comments

Comments
 (0)