From 5160c5e184fea6fdf94e7fa56218cb577b8d4555 Mon Sep 17 00:00:00 2001 From: Todd Volkert Date: Tue, 31 Oct 2023 16:15:07 -0700 Subject: [PATCH] Document the scale argument to NetworkImage (#137456) Add docs to NetworkImage constructor --- packages/flutter/lib/src/painting/image_provider.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/flutter/lib/src/painting/image_provider.dart b/packages/flutter/lib/src/painting/image_provider.dart index 50df1a66e8..1a03c04d9b 100644 --- a/packages/flutter/lib/src/painting/image_provider.dart +++ b/packages/flutter/lib/src/painting/image_provider.dart @@ -1399,6 +1399,9 @@ class ResizeImage extends ImageProvider { // our cache if the headers describe the image as having expired at that point. abstract class NetworkImage extends ImageProvider { /// Creates an object that fetches the image at the given URL. + /// + /// The [scale] argument is the linear scale factor for drawing this image at + /// its intended size. See [ImageInfo.scale] for more information. const factory NetworkImage(String url, { double scale, Map? headers }) = network_image.NetworkImage; /// The URL from which the image will be fetched.