소스 검색

列表提交

Lailin 4 년 전
부모
커밋
15ce167761
1개의 변경된 파일9개의 추가작업 그리고 7개의 파일을 삭제
  1. 9 7
      taskservice/lib/main.dart

+ 9 - 7
taskservice/lib/main.dart

@@ -58,7 +58,12 @@ class _MyHomePageState extends State<MyHomePage> {
   List<Widget> theCellData() {
     List<Widget> widgets = [];
     for (int i = 0; i < 100; i++) {
-      widgets.add(Padding(padding: EdgeInsets.all(10.0), child: Text("Row $i")));
+      widgets.add(
+          Padding(
+          padding: EdgeInsets.all(10.0),
+          child: Text("Row $i"),
+          )
+      );
     }
     return widgets;
   }
@@ -91,6 +96,7 @@ class _MyHomePageState extends State<MyHomePage> {
                           )),
                       Expanded(
                         child: TextField(
+                          focusNode: blankNode,
                           obscureText: false,
                           cursorColor: JXColors.k1F2529,
                           decoration: InputDecoration(
@@ -107,21 +113,17 @@ class _MyHomePageState extends State<MyHomePage> {
                             });
                             filterListView();
                           },
-                          onEditingComplete: () {
-                            /*键盘消失*/
-                            FocusScope.of(context).requestFocus(blankNode);
-                          },
                         ),
                       ),
                     ])),
                 Expanded(
                     flex: 1,
                     child: Container(
-                      color: Colors.lightBlue,
+                      color: JXColors.kF0F0F0,
                       child: ListView(children: theCellData()),
                     )),
                 Container(
-                  color: Colors.red,
+                  color: JXColors.kF0F0F0,
                   height: 44.0,
                   child: Row(
                     children: <Widget>[