瀏覽代碼

Clip long maker strings

vishnukvmd 4 年之前
父節點
當前提交
fc3079b30c
共有 2 個文件被更改,包括 10 次插入7 次删除
  1. 1 1
      lib/ui/exif_info_dialog.dart
  2. 9 6
      lib/ui/file_info_dialog.dart

+ 1 - 1
lib/ui/exif_info_dialog.dart

@@ -68,7 +68,7 @@ class _ExifInfoDialogState extends State<ExifInfoDialog> {
                   data,
                   style: TextStyle(
                     fontSize: 14,
-                    fontFeatures: [
+                    fontFeatures: const [
                       FontFeature.tabularFigures(),
                     ],
                     height: 1.4,

+ 9 - 6
lib/ui/file_info_dialog.dart

@@ -351,12 +351,15 @@ class _FileInfoWidgetState extends State<FileInfoWidget> {
                 color: Colors.white.withOpacity(0.85),
               ),
               Padding(padding: EdgeInsets.all(4)),
-              Text(
-                exif["Image Make"].toString() +
-                    " " +
-                    exif["Image Model"].toString(),
-                style: TextStyle(
-                  color: Colors.white.withOpacity(0.85),
+              Flexible(
+                child: Text(
+                  exif["Image Make"].toString() +
+                      " " +
+                      exif["Image Model"].toString(),
+                  style: TextStyle(
+                    color: Colors.white.withOpacity(0.85),
+                  ),
+                  overflow: TextOverflow.clip,
                 ),
               ),
             ],