daxu0403 7 роки тому
батько
коміт
d4dc9d876e
3 змінених файлів з 18 додано та 7 видалено
  1. BIN
      lib/images/icon_checked.png
  2. 17 7
      lib/pages/order_taking_page.dart
  3. 1 0
      pubspec.yaml

BIN
lib/images/icon_checked.png


+ 17 - 7
lib/pages/order_taking_page.dart

@@ -203,10 +203,10 @@ class _OrderTakingPageState extends State < OrderTakingPage > with AutomaticKeep
                 child: Container(
                   width: ScreenUtil.getInstance().setWidth(350),
                   height: ScreenUtil.getInstance().setHeight(500),
-                  margin: EdgeInsets.fromLTRB(0, 1, 1, 0),
-                  padding: EdgeInsets.fromLTRB(1, 0, 1, 0),
+                  margin: EdgeInsets.fromLTRB(0, 2, 8, 0),
+                  padding: EdgeInsets.fromLTRB(15, 0, 0, 0),
                   decoration: BoxDecoration(
-                    color: Colors.white,
+                    color: Color.fromRGBO(76,76,76,1),
                     borderRadius: BorderRadius.all(Radius.circular(4.0)),
                      boxShadow: [ //阴影
                         BoxShadow(
@@ -252,13 +252,23 @@ class _OrderTakingPageState extends State < OrderTakingPage > with AutomaticKeep
         child: Row(
           children: < Widget > [
             Padding(
-              padding: EdgeInsets.only(right: 5),
-              child: checked ? Icon(Icons.check, color: Colors.black, ) : Icon(Icons.check, color: Color.fromRGBO(255, 255, 255, 0.0, )),
+              padding: EdgeInsets.fromLTRB(0, 0, 15, 0),
+              child: checked ? Image.asset('lib/images/icon_checked.png',
+              width: ScreenUtil.getInstance().setWidth(30),
+              height:ScreenUtil.getInstance().setWidth(30),
+              ) : Icon(Icons.check, color: Color.fromRGBO(255, 255, 255, 0.0, )),
             ),
             Expanded(
               flex: 1,
-              child: Center(
-                child: Text(lineObj.name, style: TextStyle(color: Colors.black))
+              child: Container(
+                padding: EdgeInsets.only(right: 15),
+                child: Row(
+                  mainAxisAlignment: MainAxisAlignment.end,
+                  children: <Widget>[
+                     Text(lineObj.name,overflow: TextOverflow.ellipsis, style: TextStyle(color: Colors.white,fontSize:ScreenUtil.getInstance().setSp(30)))
+                  ],
+                ),
+               
               )
             )
           ],

+ 1 - 0
pubspec.yaml

@@ -79,6 +79,7 @@ flutter:
     - lib/images/icon_dayinji.png
     - lib/images/loading.gif
     - lib/images/icon_bank.png
+    - lib/images/icon_checked.png
   # An image asset can refer to one or more resolution-specific "variants", see
   # https://flutter.io/assets-and-images/#resolution-aware.