daxu0403 7 年之前
父節點
當前提交
855ed1972f
共有 2 個文件被更改,包括 7 次插入3 次删除
  1. 2 1
      lib/pages/order_management_page.dart
  2. 5 2
      lib/pages/order_taking_page.dart

+ 2 - 1
lib/pages/order_management_page.dart

@@ -397,7 +397,8 @@ class _QueryWidgetState extends State < QueryWidget > {
                 padding: EdgeInsets.only(bottom: ScreenUtil.getInstance().setHeight(20)),
                 child: Row(
                   children: < Widget > [
-                    Text('${obj.sendCompanyName} --> ${obj.receiptCompanyName}', style: TextStyle(fontSize: ScreenUtil.getInstance().setSp(30)), ),
+                    Text('${obj.sendCompanyName} --> ${obj.receiptCompanyName}', 
+                    overflow: TextOverflow.ellipsis,style: TextStyle(fontSize: ScreenUtil.getInstance().setSp(30)), ),
                   ],
                 )
               ),

+ 5 - 2
lib/pages/order_taking_page.dart

@@ -566,7 +566,8 @@ Widget orderAddress(String startAddress, String endAddress) { //运送路线
   return Container(
     margin: EdgeInsets.only(bottom: ScreenUtil.getInstance().setHeight(20)),
     child: Row(children: < Widget > [
-      Text('${startAddress} ---> ${endAddress}', style: TextStyle(color: Colors.black, fontSize: ScreenUtil.getInstance().setSp(30)), ),
+      Text('${startAddress} ---> ${endAddress}',
+      overflow: TextOverflow.ellipsis, style: TextStyle(color: Colors.black, fontSize: ScreenUtil.getInstance().setSp(30)), ),
     ], )
   );
 }
@@ -600,7 +601,9 @@ Widget orderItem(String key, String value, int marginBottom) { //货物名称,
   return Container(
     margin: EdgeInsets.only(bottom: ScreenUtil.getInstance().setHeight(marginBottom)),
     child: Row(children: < Widget > [
-      Text('${key}:${value}', style: TextStyle(color: Color.fromRGBO(153, 153, 153, 1), fontSize: ScreenUtil.getInstance().setSp(24)), ),
+      Text('${key}:${value}',
+        overflow: TextOverflow.ellipsis,
+       style: TextStyle(color: Color.fromRGBO(153, 153, 153, 1), fontSize: ScreenUtil.getInstance().setSp(24)), ),
     ], )
   );
 }