浏览代码

图像描述可换行

loki.wu 1 年之前
父节点
当前提交
a2bf0bb3c8
共有 1 个文件被更改,包括 9 次插入6 次删除
  1. 9 6
      lib/components/picture_components.dart

+ 9 - 6
lib/components/picture_components.dart

@@ -234,18 +234,21 @@ class FContentImage extends StatelessWidget implements FWidget {
     return FPositioned(
       bottom: 5,
       left: 5,
+      right: 5,
       child: _buildApplication(),
     );
   }
 
   ///构建描述字段
   FWidget _buildApplication() {
-    return FText(
-      description ?? "",
-      style: TextStyle(
-        color: Colors.white,
-        fontSize: 10,
-        overflow: TextOverflow.ellipsis,
+    return FContainer(
+      child: FText(
+        description ?? "",
+        softWrap: true,
+        style: TextStyle(
+          color: Colors.white,
+          fontSize: 10,
+        ),
       ),
     );
   }