mirror of
https://github.com/immich-app/immich.git
synced 2025-07-08 18:54:18 -04:00
Fixes aspect ratio calculation
This commit is contained in:
parent
04350f262a
commit
b0ff859cd6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user