mirror of
https://github.com/immich-app/immich.git
synced 2025-01-01 08:31:59 +00:00
fix(mobile): use proper id for gellery_viewer hero attribute (#5894)
Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
parent
8295542941
commit
154292242f
1 changed files with 4 additions and 4 deletions
|
@ -795,8 +795,8 @@ class GalleryViewerPage extends HookConsumerWidget {
|
||||||
imageProvider: provider,
|
imageProvider: provider,
|
||||||
heroAttributes: PhotoViewHeroAttributes(
|
heroAttributes: PhotoViewHeroAttributes(
|
||||||
tag: isFromDto
|
tag: isFromDto
|
||||||
? '${a.remoteId}-$heroOffset'
|
? '${currentAsset.remoteId}-$heroOffset'
|
||||||
: a.id + heroOffset,
|
: currentAsset.id + heroOffset,
|
||||||
transitionOnUserGestures: true,
|
transitionOnUserGestures: true,
|
||||||
),
|
),
|
||||||
filterQuality: FilterQuality.high,
|
filterQuality: FilterQuality.high,
|
||||||
|
@ -815,8 +815,8 @@ class GalleryViewerPage extends HookConsumerWidget {
|
||||||
handleSwipeUpDown(details),
|
handleSwipeUpDown(details),
|
||||||
heroAttributes: PhotoViewHeroAttributes(
|
heroAttributes: PhotoViewHeroAttributes(
|
||||||
tag: isFromDto
|
tag: isFromDto
|
||||||
? '${a.remoteId}-$heroOffset'
|
? '${currentAsset.remoteId}-$heroOffset'
|
||||||
: a.id + heroOffset,
|
: currentAsset.id + heroOffset,
|
||||||
),
|
),
|
||||||
filterQuality: FilterQuality.high,
|
filterQuality: FilterQuality.high,
|
||||||
maxScale: 1.0,
|
maxScale: 1.0,
|
||||||
|
|
Loading…
Reference in a new issue