Skip to content

Commit bbd18cb

Browse files
authored
Move imageFormats template to instantiateImageCodec dartdoc (flutter#34948)
1 parent 0dea629 commit bbd18cb

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

lib/ui/painting.dart

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,6 @@ part of dart.ui;
1515
// Painting APIs will also warn about arguments representing NaN coordinates,
1616
// which can not be rendered by Skia.
1717

18-
// Update this list when changing the list of supported codecs.
19-
/// {@template dart.ui.imageFormats}
20-
/// JPEG, PNG, GIF, Animated GIF, WebP, Animated WebP, BMP, and WBMP. Additional
21-
/// formats may be supported by the underlying platform. Flutter will
22-
/// attempt to call platform API to decode unrecognized formats, and if the
23-
/// platform API supports decoding the image Flutter will be able to render it.
24-
/// {@endtemplate}
25-
2618
bool _rectIsValid(Rect rect) {
2719
assert(rect != null, 'Rect argument was null.');
2820
assert(!rect.hasNaN, 'Rect argument contained a NaN value.');
@@ -2029,7 +2021,14 @@ class Codec extends NativeFieldWrapperClass1 {
20292021
///
20302022
/// The `list` parameter is the binary image data (e.g a PNG or GIF binary data).
20312023
/// The data can be for either static or animated images. The following image
2032-
/// formats are supported: {@macro dart.ui.imageFormats}
2024+
/// formats are supported:
2025+
// Update this list when changing the list of supported codecs.
2026+
/// {@template dart.ui.imageFormats}
2027+
/// JPEG, PNG, GIF, Animated GIF, WebP, Animated WebP, BMP, and WBMP. Additional
2028+
/// formats may be supported by the underlying platform. Flutter will
2029+
/// attempt to call platform API to decode unrecognized formats, and if the
2030+
/// platform API supports decoding the image Flutter will be able to render it.
2031+
/// {@endtemplate}
20332032
///
20342033
/// The `targetWidth` and `targetHeight` arguments specify the size of the
20352034
/// output image, in image pixels. If they are not equal to the intrinsic

0 commit comments

Comments
 (0)