浏览代码

UI bug fix

ashilkn 2 年之前
父节点
当前提交
2e11f9431d
共有 1 个文件被更改,包括 7 次插入5 次删除
  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(
       SizedBox(
         height: 62,
         height: 62,
         child: ListTile(
         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(
     return SafeArea(
       top: false,
       top: false,
       child: Padding(
       child: Padding(