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 Mar 21, 2021
1 parent fe2e893 commit 8954fc5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/cached_image_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ class CachedNetworkImage extends StatelessWidget {
this.maxWidthDiskCache,
this.maxHeightDiskCache,
ImageRenderMethodForWeb imageRenderMethodForWeb,
double scale = 1.0,
}) : assert(imageUrl != null),
assert(fadeOutDuration != null),
assert(fadeOutCurve != null),
Expand All @@ -245,6 +246,7 @@ class CachedNetworkImage extends StatelessWidget {
imageRenderMethodForWeb: imageRenderMethodForWeb,
maxWidth: maxWidthDiskCache,
maxHeight: maxHeightDiskCache,
scale: scale,
),
super(key: key);

Expand Down

0 comments on commit 8954fc5

Please sign in to comment.