ashilkn il y a 2 ans
Parent
commit
2e11f9431d
1 fichiers modifiés avec 7 ajouts et 5 suppressions
  1. 7 5
      lib/ui/viewer/file/file_info_widget.dart

+ 7 - 5
lib/ui/viewer/file/file_info_widget.dart

@@ -207,7 +207,7 @@ class _FileInfoWidgetState extends State<FileInfoWidget> {
                 ],
               ),
             )
-          : const SizedBox.shrink(),
+          : null,
       SizedBox(
         height: 62,
         child: ListTile(
@@ -243,12 +243,14 @@ class _FileInfoWidgetState extends State<FileInfoWidget> {
                     ),
               ),
             )
-          : const SizedBox.shrink(),
-      _isImage
-          ? RawExifListTileWidget(_exif, widget.file)
-          : const SizedBox.shrink(),
+          : null,
+      _isImage ? RawExifListTileWidget(_exif, widget.file) : null,
     ];
 
+    listTiles.removeWhere(
+      (element) => element == null,
+    );
+
     return SafeArea(
       top: false,
       child: Padding(