From ad5ba82f50c3a44338ceacee77ab27abd0309242 Mon Sep 17 00:00:00 2001 From: waclaw66 Date: Tue, 31 Oct 2023 11:33:08 +0100 Subject: [PATCH] fix(mobile): don't show lens info if it's not available (#4737) --- mobile/lib/modules/asset_viewer/ui/exif_bottom_sheet.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/lib/modules/asset_viewer/ui/exif_bottom_sheet.dart b/mobile/lib/modules/asset_viewer/ui/exif_bottom_sheet.dart index 7a02c96b20..df1c8ba6fb 100644 --- a/mobile/lib/modules/asset_viewer/ui/exif_bottom_sheet.dart +++ b/mobile/lib/modules/asset_viewer/ui/exif_bottom_sheet.dart @@ -297,9 +297,9 @@ class ExifBottomSheet extends HookConsumerWidget { fontWeight: FontWeight.bold, ), ), - subtitle: Text( + subtitle: exifInfo.f != null || exifInfo.exposureSeconds != null || exifInfo.mm != null || exifInfo.iso != null ? Text( "ƒ/${exifInfo.fNumber} ${exifInfo.exposureTime} ${exifInfo.focalLength} mm ISO ${exifInfo.iso ?? ''} ", - ), + ) : null, ), ], );