mirror of
https://github.com/immich-app/immich.git
synced 2024-12-29 15:11:58 +00:00
Fixes aspect ratio calculation
This commit is contained in:
parent
04350f262a
commit
b0ff859cd6
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue