mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 16:18:22 +08:00
resize image placeholder
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -403,9 +403,13 @@ class _GalleryViewerState extends State<GalleryViewer>
|
|||||||
return child;
|
return child;
|
||||||
} else {
|
} else {
|
||||||
return Image(
|
return Image(
|
||||||
image: CachedNetworkImageProvider(
|
image: ResizeImage.resizeIfNeeded(
|
||||||
|
_containerSize.width.cacheSize(context),
|
||||||
|
null,
|
||||||
|
CachedNetworkImageProvider(
|
||||||
ImageUtils.thumbnailUrl(item.url, widget.quality),
|
ImageUtils.thumbnailUrl(item.url, widget.quality),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
minScale: widget.minScale,
|
minScale: widget.minScale,
|
||||||
maxScale: widget.maxScale,
|
maxScale: widget.maxScale,
|
||||||
containerSize: _containerSize,
|
containerSize: _containerSize,
|
||||||
|
|||||||
Reference in New Issue
Block a user