|
@@ -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>[
|