From 154292242f0032367073e823f429fcf4fca701f9 Mon Sep 17 00:00:00 2001 From: shenlong <139912620+shenlong-tanwen@users.noreply.github.com> Date: Wed, 20 Dec 2023 17:23:17 +0000 Subject: [PATCH] fix(mobile): use proper id for gellery_viewer hero attribute (#5894) Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> --- mobile/lib/modules/asset_viewer/views/gallery_viewer.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mobile/lib/modules/asset_viewer/views/gallery_viewer.dart b/mobile/lib/modules/asset_viewer/views/gallery_viewer.dart index 007300a328..792f3623c9 100644 --- a/mobile/lib/modules/asset_viewer/views/gallery_viewer.dart +++ b/mobile/lib/modules/asset_viewer/views/gallery_viewer.dart @@ -795,8 +795,8 @@ class GalleryViewerPage extends HookConsumerWidget { imageProvider: provider, heroAttributes: PhotoViewHeroAttributes( tag: isFromDto - ? '${a.remoteId}-$heroOffset' - : a.id + heroOffset, + ? '${currentAsset.remoteId}-$heroOffset' + : currentAsset.id + heroOffset, transitionOnUserGestures: true, ), filterQuality: FilterQuality.high, @@ -815,8 +815,8 @@ class GalleryViewerPage extends HookConsumerWidget { handleSwipeUpDown(details), heroAttributes: PhotoViewHeroAttributes( tag: isFromDto - ? '${a.remoteId}-$heroOffset' - : a.id + heroOffset, + ? '${currentAsset.remoteId}-$heroOffset' + : currentAsset.id + heroOffset, ), filterQuality: FilterQuality.high, maxScale: 1.0,