Skip to content

Commit 8afaf7b

Browse files
authored
Fix documentation for filterQuality fields (#104056)
1 parent 992c893 commit 8afaf7b

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

packages/flutter/lib/src/painting/decoration_image.dart

+2-3
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,8 @@ class DecorationImage {
154154

155155
/// Used to set the filterQuality of the image.
156156
///
157-
/// Use the "low" quality setting to scale the image, which corresponds to
158-
/// bilinear interpolation, rather than the default "none" which corresponds
159-
/// to nearest-neighbor.
157+
/// Defaults to [FilterQuality.low] to scale the image, which corresponds to
158+
/// bilinear interpolation.
160159
final FilterQuality filterQuality;
161160

162161
/// Whether the colors of the image are inverted when drawn.

packages/flutter/lib/src/widgets/basic.dart

+2-3
Original file line numberDiff line numberDiff line change
@@ -5702,9 +5702,8 @@ class RawImage extends LeafRenderObjectWidget {
57025702

57035703
/// Used to set the filterQuality of the image.
57045704
///
5705-
/// Use the "low" quality setting to scale the image, which corresponds to
5706-
/// bilinear interpolation, rather than the default "none" which corresponds
5707-
/// to nearest-neighbor.
5705+
/// Defaults to [FilterQuality.low] to scale the image, which corresponds to
5706+
/// bilinear interpolation.
57085707
final FilterQuality filterQuality;
57095708

57105709
/// Used to combine [color] with this image.

0 commit comments

Comments
 (0)