opt img preview

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-24 10:58:16 +08:00
parent 81cfe3efe1
commit 5bd6b38908
5 changed files with 13 additions and 5 deletions

View File

@@ -45,8 +45,11 @@ class InteractiveviewerGallery<T> extends StatefulWidget {
this.onDismissed,
this.setStatusBar,
this.onClose,
required this.quality,
});
final int quality;
final ValueChanged? onClose;
final bool? setStatusBar;
@@ -427,7 +430,7 @@ class _InteractiveviewerGalleryState extends State<InteractiveviewerGallery>
return CachedNetworkImage(
fadeInDuration: Duration.zero,
fadeOutDuration: Duration.zero,
imageUrl: Utils.thumbnailImgUrl(item.url),
imageUrl: Utils.thumbnailImgUrl(item.url, widget.quality),
);
},
),