fix(mobile): calculate isFlipped for exif from db ()

Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
shenlong 2025-03-11 16:11:47 +05:30 committed by GitHub
parent f0f0056fe3
commit 81df812f56
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions
mobile/lib/infrastructure/utils

View file

@ -9,7 +9,7 @@ abstract final class ExifDtoConverter {
orientation: dto.orientation,
timeZone: dto.timeZone,
dateTimeOriginal: dto.dateTimeOriginal,
isFlipped: _isOrientationFlipped(dto.orientation),
isFlipped: isOrientationFlipped(dto.orientation),
latitude: dto.latitude?.toDouble(),
longitude: dto.longitude?.toDouble(),
city: dto.city,
@ -25,7 +25,7 @@ abstract final class ExifDtoConverter {
);
}
static bool _isOrientationFlipped(String? orientation) {
static bool isOrientationFlipped(String? orientation) {
final value = orientation == null ? null : int.tryParse(orientation);
if (value == null) {
return false;