From 97f5f41579d2307e34989e20d807110ee62ec243 Mon Sep 17 00:00:00 2001 From: Thibault Deckers Date: Mon, 25 Nov 2019 20:56:16 +0900 Subject: [PATCH] removed hero for videos --- lib/widgets/fullscreen/image_page.dart | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/widgets/fullscreen/image_page.dart b/lib/widgets/fullscreen/image_page.dart index 11d21297f..ab37cb527 100644 --- a/lib/widgets/fullscreen/image_page.dart +++ b/lib/widgets/fullscreen/image_page.dart @@ -50,10 +50,7 @@ class ImagePageState extends State 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(),