reduce widget rebuild

This commit is contained in:
Alex Tran
2023-11-02 21:33:33 -05:00
parent b58edae134
commit b49d9660f6
6 changed files with 313 additions and 91 deletions
@@ -791,11 +791,6 @@ class GalleryViewerPage extends HookConsumerWidget {
localPosition = details.localPosition,
onDragUpdate: (_, details, __) =>
handleSwipeUpDown(details),
heroAttributes: PhotoViewHeroAttributes(
tag: isFromDto
? '${a.remoteId}-$heroOffset'
: a.id + heroOffset,
),
filterQuality: FilterQuality.high,
maxScale: 1.0,
minScale: 1.0,