From 52f8d67e2dab81ff095963c40893e46de9bc6074 Mon Sep 17 00:00:00 2001 From: Shawn Date: Mon, 19 Dec 2022 14:37:19 -0700 Subject: [PATCH] Fix tablet sizing in photogallery --- lib/ui/screens/photo_gallery/photo_gallery.dart | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/ui/screens/photo_gallery/photo_gallery.dart b/lib/ui/screens/photo_gallery/photo_gallery.dart index 3b593654..aa6541bb 100644 --- a/lib/ui/screens/photo_gallery/photo_gallery.dart +++ b/lib/ui/screens/photo_gallery/photo_gallery.dart @@ -136,13 +136,10 @@ class _PhotoGalleryState extends State { return Center(child: AppLoadingIndicator()); } - Size imgSize = context.isLandscape - ? Size(context.widthPx * .5, context.heightPx * .66) - : Size(context.widthPx * .66, context.heightPx * .5); + Size imgSize = Size(context.widthPx * .5, context.heightPx * .5); imgSize = (widget.imageSize ?? imgSize) * _scale; // Get transform offset for the current _index final padding = $styles.insets.md; - var gridOffset = _calculateCurrentOffset(padding, imgSize); gridOffset += Offset(0, -context.mq.padding.top / 2); final offsetTweenDuration = _skipNextOffsetTween ? Duration.zero : swipeDuration;