@@ -312,10 +312,9 @@ class Image extends StatefulWidget {
312312 /// Otherwise, the image dimensions will change as the image is loaded, which
313313 /// will result in ugly layout changes.
314314 ///
315- /// Use [filterQuality] to change the quality when scaling an image.
316- /// Use the [FilterQuality.low] quality setting to scale the image,
317- /// which corresponds to bilinear interpolation, rather than the default
318- /// [FilterQuality.none] which corresponds to nearest-neighbor.
315+ /// {@template flutter.widgets.image.filterQualityParameter}
316+ /// Use [filterQuality] to specify the rendering quality of the image.
317+ /// {@endtemplate}
319318 ///
320319 /// If [excludeFromSemantics] is true, then [semanticLabel] will be ignored.
321320 const Image ({
@@ -360,10 +359,7 @@ class Image extends StatefulWidget {
360359 /// An optional [headers] argument can be used to send custom HTTP headers
361360 /// with the image request.
362361 ///
363- /// Use [filterQuality] to change the quality when scaling an image.
364- /// Use the [FilterQuality.low] quality setting to scale the image,
365- /// which corresponds to bilinear interpolation, rather than the default
366- /// [FilterQuality.none] which corresponds to nearest-neighbor.
362+ /// {@macro flutter.widgets.image.filterQualityParameter}
367363 ///
368364 /// If [excludeFromSemantics] is true, then [semanticLabel] will be ignored.
369365 ///
@@ -424,10 +420,7 @@ class Image extends StatefulWidget {
424420 /// On Android, this may require the
425421 /// `android.permission.READ_EXTERNAL_STORAGE` permission.
426422 ///
427- /// Use [filterQuality] to change the quality when scaling an image.
428- /// Use the [FilterQuality.low] quality setting to scale the image,
429- /// which corresponds to bilinear interpolation, rather than the default
430- /// [FilterQuality.none] which corresponds to nearest-neighbor.
423+ /// {@macro flutter.widgets.image.filterQualityParameter}
431424 ///
432425 /// If [excludeFromSemantics] is true, then [semanticLabel] will be ignored.
433426 ///
@@ -520,10 +513,7 @@ class Image extends StatefulWidget {
520513 /// Otherwise, the image dimensions will change as the image is loaded, which
521514 /// will result in ugly layout changes.
522515 ///
523- /// Use [filterQuality] to change the quality when scaling an image.
524- /// Use the [FilterQuality.low] quality setting to scale the image,
525- /// which corresponds to bilinear interpolation, rather than the default
526- /// [FilterQuality.none] which corresponds to nearest-neighbor.
516+ /// {@macro flutter.widgets.image.filterQualityParameter}
527517 ///
528518 /// {@tool snippet}
529519 ///
@@ -667,10 +657,7 @@ class Image extends StatefulWidget {
667657 /// Otherwise, the image dimensions will change as the image is loaded, which
668658 /// will result in ugly layout changes.
669659 ///
670- /// Use [filterQuality] to change the quality when scaling an image.
671- /// Use the [FilterQuality.low] quality setting to scale the image,
672- /// which corresponds to bilinear interpolation, rather than the default
673- /// [FilterQuality.none] which corresponds to nearest-neighbor.
660+ /// {@macro flutter.widgets.image.filterQualityParameter}
674661 ///
675662 /// If [excludeFromSemantics] is true, then [semanticLabel] will be ignored.
676663 ///
@@ -930,11 +917,22 @@ class Image extends StatefulWidget {
930917 /// If non-null, this color is blended with each image pixel using [colorBlendMode] .
931918 final Color ? color;
932919
933- /// Used to set the [FilterQuality] of the image.
920+ /// The rendering quality of the image.
921+ ///
922+ /// If the image is of a high quality and its pixels are perfectly aligned
923+ /// with the physical screen pixels, extra quality enhancement may not be
924+ /// necessary. If so, then [FilterQuality.none] would be the most efficient.
925+ ///
926+ /// If the pixels are not perfectly aligned with the screen pixels, or if the
927+ /// image itself is of a low quality, [FilterQuality.none] may produce
928+ /// undesirable artifacts. Consider using other [FilterQuality] values to
929+ /// improve the rendered image quality in this case. Pixels may be misaligned
930+ /// with the screen pixels as a result of transforms or scaling.
931+ ///
932+ /// See also:
934933 ///
935- /// Use the [FilterQuality.low] quality setting to scale the image with
936- /// bilinear interpolation, or the [FilterQuality.none] which corresponds
937- /// to nearest-neighbor.
934+ /// * [FilterQuality] , the enum containing all possible filter quality
935+ /// options.
938936 final FilterQuality filterQuality;
939937
940938 /// Used to combine [color] with this image.
0 commit comments