incorrect aspect ratio on iOS

This commit is contained in:
shenlong-tanwen 2025-07-08 22:20:00 +05:30
parent e07457ee16
commit 056fdcbdb0

View File

@ -44,8 +44,9 @@ class AssetService {
isFlipped = ExifDtoConverter.isOrientationFlipped(exif?.orientation);
width = exif?.width ?? asset.width?.toDouble();
height = exif?.height ?? asset.height?.toDouble();
} else if (asset is LocalAsset && _platform.isAndroid) {
isFlipped = asset.orientation == 90 || asset.orientation == 270;
} else if (asset is LocalAsset) {
isFlipped = _platform.isAndroid &&
(asset.orientation == 90 || asset.orientation == 270);
width = asset.width?.toDouble();
height = asset.height?.toDouble();
} else {