🐛 Fix attachments can't be zoom

This commit is contained in:
2025-04-02 00:31:00 +08:00
parent a75083d916
commit cf34a285b4
8 changed files with 257 additions and 212 deletions

View File

@ -181,7 +181,10 @@ class _AttachmentZoomViewState extends State<AttachmentZoomView> {
scaleState == PhotoViewScaleState.initial);
},
imageProvider: UniversalImage.provider(
sn.getAttachmentUrl(widget.data.first.rid),
sn.getAttachmentUrl(
widget.data.first.rid,
preview: false,
),
),
),
);
@ -199,7 +202,10 @@ class _AttachmentZoomViewState extends State<AttachmentZoomView> {
widget.heroTags?.elementAt(idx) ?? uuid.v4();
return PhotoViewGalleryPageOptions(
imageProvider: UniversalImage.provider(
sn.getAttachmentUrl(widget.data.elementAt(idx).rid),
sn.getAttachmentUrl(
widget.data.elementAt(idx).rid,
preview: false,
),
),
heroAttributes: PhotoViewHeroAttributes(
tag: 'attachment-${widget.data.first.rid}-$heroTag',