TextField(
inputFormatters: [
LengthLimitingTextInputFormatter(11),
FilteringTextInputFormatter.digitsOnly
],
keyboardType: TextInputType.number,
设置代码:FilteringTextInputFormatter.digitsOnly
TextField(
inputFormatters: [
LengthLimitingTextInputFormatter(11),
FilteringTextInputFormatter.digitsOnly
],
keyboardType: TextInputType.number,
设置代码:FilteringTextInputFormatter.digitsOnly