From 57854a6e8a82ae19b8171e2436afc91c641a586e Mon Sep 17 00:00:00 2001 From: Aaron Madlon-Kay Date: Sun, 21 Mar 2021 23:22:50 +0900 Subject: [PATCH] Expose `scale` of CachedNetworkImageProvider on CachedNetworkImage Closes #572 --- cached_network_image/lib/src/cached_image_widget.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cached_network_image/lib/src/cached_image_widget.dart b/cached_network_image/lib/src/cached_image_widget.dart index 86a046b1..a23192db 100644 --- a/cached_network_image/lib/src/cached_image_widget.dart +++ b/cached_network_image/lib/src/cached_image_widget.dart @@ -240,6 +240,7 @@ class CachedNetworkImage extends StatelessWidget { this.errorListener, ImageRenderMethodForWeb imageRenderMethodForWeb = ImageRenderMethodForWeb.HtmlImage, + double scale = 1.0, }) : _image = CachedNetworkImageProvider( imageUrl, headers: httpHeaders, @@ -249,6 +250,7 @@ class CachedNetworkImage extends StatelessWidget { maxWidth: maxWidthDiskCache, maxHeight: maxHeightDiskCache, errorListener: errorListener, + scale: scale, ); @override