extra smooth seeking, add comments

This commit is contained in:
mertalev
2024-11-12 12:32:08 -05:00
parent e59912e16e
commit caee381721
5 changed files with 104 additions and 25 deletions
@@ -292,6 +292,7 @@ class GalleryViewerPage extends HookConsumerWidget {
}
PhotoViewGalleryPageOptions buildVideo(BuildContext context, Asset asset) {
// This key is to prevent the video player from being re-initialized during the hero animation
final key = GlobalKey();
final tag = getHeroTag(asset);
return PhotoViewGalleryPageOptions.customChild(