Explorar o código

fix(mobile): don't show lens info if it's not available (#4737)

waclaw66 hai 1 ano
pai
achega
ad5ba82f50
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      mobile/lib/modules/asset_viewer/ui/exif_bottom_sheet.dart

+ 2 - 2
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,
             ),
         ],
       );