Fix hero attribute in gallery
This commit is contained in:
parent
258ec7259e
commit
a949c103d2
2 changed files with 2 additions and 2 deletions
|
@ -101,7 +101,7 @@ class _GalleryState extends State<Gallery> {
|
|||
: null,
|
||||
),
|
||||
child: Hero(
|
||||
tag: photo.generatedId,
|
||||
tag: photo.hashCode,
|
||||
child: ThumbnailWidget(photo),
|
||||
),
|
||||
),
|
||||
|
|
|
@ -52,7 +52,7 @@ class _ZoomableImageState extends State<ZoomableImage> {
|
|||
scaleStateChangedCallback: _scaleStateChangedCallback,
|
||||
minScale: PhotoViewComputedScale.contained,
|
||||
gaplessPlayback: true,
|
||||
heroAttributes: PhotoViewHeroAttributes(tag: widget.photo.generatedId),
|
||||
heroAttributes: PhotoViewHeroAttributes(tag: widget.photo.hashCode),
|
||||
);
|
||||
} else {
|
||||
return loadWidget;
|
||||
|
|
Loading…
Add table
Reference in a new issue