removed hero for videos

This commit is contained in:
Thibault Deckers 2019-11-25 20:56:16 +09:00
parent a83b7a186b
commit 97f5f41579

View file

@ -50,10 +50,7 @@ class ImagePageState extends State<ImagePage> with AutomaticKeepAliveClientMixin
)
: SizedBox(),
childSize: MediaQuery.of(galleryContext).size,
heroAttributes: PhotoViewHeroAttributes(
tag: entry.uri,
transitionOnUserGestures: true,
),
// no hero as most videos fullscreen image is different from its thumbnail
minScale: PhotoViewComputedScale.contained,
initialScale: PhotoViewComputedScale.contained,
onTapUp: (tapContext, details, value) => widget.onTap?.call(),