Skip to content

Commit

Permalink
Merge pull request #576 from amake/feature/expose-scale
Browse files Browse the repository at this point in the history
Expose `scale` of CachedNetworkImageProvider on CachedNetworkImage
  • Loading branch information
martijn00 authored Jul 31, 2024
2 parents f0c0dfe + 57854a6 commit 94d6ab2
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 @@ -240,6 +240,7 @@ class CachedNetworkImage extends StatelessWidget {
this.errorListener,
ImageRenderMethodForWeb imageRenderMethodForWeb =
ImageRenderMethodForWeb.HtmlImage,
double scale = 1.0,
}) : _image = CachedNetworkImageProvider(
imageUrl,
headers: httpHeaders,
Expand All @@ -249,6 +250,7 @@ class CachedNetworkImage extends StatelessWidget {
maxWidth: maxWidthDiskCache,
maxHeight: maxHeightDiskCache,
errorListener: errorListener,
scale: scale,
);

@override
Expand Down

0 comments on commit 94d6ab2

Please sign in to comment.