Skip to content

Commit

Permalink
Expose scale of CachedNetworkImageProvider on CachedNetworkImage
Browse files Browse the repository at this point in the history
Closes #572
  • Loading branch information
amake committed Sep 3, 2021
1 parent 5ac1237 commit 636db53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cached_network_image/lib/src/cached_image_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ class CachedNetworkImage extends StatelessWidget {
this.maxHeightDiskCache,
ImageRenderMethodForWeb imageRenderMethodForWeb =
ImageRenderMethodForWeb.HtmlImage,
double scale = 1.0,
}) : _image = CachedNetworkImageProvider(
imageUrl,
headers: httpHeaders,
Expand All @@ -238,6 +239,7 @@ class CachedNetworkImage extends StatelessWidget {
imageRenderMethodForWeb: imageRenderMethodForWeb,
maxWidth: maxWidthDiskCache,
maxHeight: maxHeightDiskCache,
scale: scale,
),
super(key: key);

Expand Down

0 comments on commit 636db53

Please sign in to comment.