diff --git a/lib/ui/gallery.dart b/lib/ui/gallery.dart index 1a2f3ca8834ed7a00d6a0e702999c3889c969645..2649f7be660eecfd7e84eaf488aa7b1eb9c428a5 100644 --- a/lib/ui/gallery.dart +++ b/lib/ui/gallery.dart @@ -101,7 +101,7 @@ class _GalleryState extends State { : null, ), child: Hero( - tag: photo.generatedId, + tag: photo.hashCode, child: ThumbnailWidget(photo), ), ), diff --git a/lib/ui/zoomable_image.dart b/lib/ui/zoomable_image.dart index 60c69e38f938431efc6af223624feb9b03f7ce8c..82496afa7ca6b2cf20ea2fd628fc069bf711b5b8 100644 --- a/lib/ui/zoomable_image.dart +++ b/lib/ui/zoomable_image.dart @@ -52,7 +52,7 @@ class _ZoomableImageState extends State { scaleStateChangedCallback: _scaleStateChangedCallback, minScale: PhotoViewComputedScale.contained, gaplessPlayback: true, - heroAttributes: PhotoViewHeroAttributes(tag: widget.photo.generatedId), + heroAttributes: PhotoViewHeroAttributes(tag: widget.photo.hashCode), ); } else { return loadWidget;