1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| SizedBox( width: 200.0, child: TextField( onChanged: (input){ _accountInput(context,input); }, onSubmitted: (input){ _accountInput(context,input); }, textInputAction: TextInputAction.done, style: TextStyle(color: Colors.black87, fontSize: 14.0), textAlign: TextAlign.center, maxLines: 1, keyboardType: TextInputType.number, decoration: InputDecoration( hintText: "请输入11位手机号码", hintStyle: TextStyle(color: Colors.grey, fontSize: 14.0), contentPadding: EdgeInsets.all(10.0), enabledBorder: UnderlineInputBorder( borderSide: BorderSide(width: 0.8, color: Colors.green), ), focusedBorder: UnderlineInputBorder( borderSide: BorderSide(width: 0.8, color: Colors.green), ), ), ), ),
|