From b0ff859cd670634dfd96b226b7fd2bf53ae56e63 Mon Sep 17 00:00:00 2001 From: Marty Fuhry Date: Sun, 4 Feb 2024 20:38:01 -0500 Subject: [PATCH] Fixes aspect ratio calculation --- mobile/lib/modules/memories/ui/memory_card.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/lib/modules/memories/ui/memory_card.dart b/mobile/lib/modules/memories/ui/memory_card.dart index 52ac17c915..9c517c738b 100644 --- a/mobile/lib/modules/memories/ui/memory_card.dart +++ b/mobile/lib/modules/memories/ui/memory_card.dart @@ -66,7 +66,7 @@ class MemoryCard extends StatelessWidget { // Determine the fit using the aspect ratio BoxFit fit = BoxFit.fitWidth; if (asset.width != null && asset.height != null) { - final aspectRatio = asset.height! / asset.width!; + final aspectRatio = asset.width! / asset.height!; final phoneAspectRatio = constraints.maxWidth / constraints.maxHeight; // Look for a 25% difference in either direction