From 8afaf7b58e47fee32ab507f7f36797bdff74de59 Mon Sep 17 00:00:00 2001 From: Bruno Leroux Date: Wed, 18 May 2022 23:42:10 +0200 Subject: [PATCH] Fix documentation for filterQuality fields (#104056) --- packages/flutter/lib/src/painting/decoration_image.dart | 5 ++--- packages/flutter/lib/src/widgets/basic.dart | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/flutter/lib/src/painting/decoration_image.dart b/packages/flutter/lib/src/painting/decoration_image.dart index 1bd756292f..b3eeb236b8 100644 --- a/packages/flutter/lib/src/painting/decoration_image.dart +++ b/packages/flutter/lib/src/painting/decoration_image.dart @@ -154,9 +154,8 @@ class DecorationImage { /// Used to set the filterQuality of the image. /// - /// Use the "low" quality setting to scale the image, which corresponds to - /// bilinear interpolation, rather than the default "none" which corresponds - /// to nearest-neighbor. + /// Defaults to [FilterQuality.low] to scale the image, which corresponds to + /// bilinear interpolation. final FilterQuality filterQuality; /// Whether the colors of the image are inverted when drawn. diff --git a/packages/flutter/lib/src/widgets/basic.dart b/packages/flutter/lib/src/widgets/basic.dart index 85337ee482..c98662fce6 100644 --- a/packages/flutter/lib/src/widgets/basic.dart +++ b/packages/flutter/lib/src/widgets/basic.dart @@ -5702,9 +5702,8 @@ class RawImage extends LeafRenderObjectWidget { /// Used to set the filterQuality of the image. /// - /// Use the "low" quality setting to scale the image, which corresponds to - /// bilinear interpolation, rather than the default "none" which corresponds - /// to nearest-neighbor. + /// Defaults to [FilterQuality.low] to scale the image, which corresponds to + /// bilinear interpolation. final FilterQuality filterQuality; /// Used to combine [color] with this image.