flutter 限制输入数字
TextField(inputFormatters: [LengthLimitingTextInputFormatter(11),FilteringTextInputFormatter.digitsOnly],keyboardType: TextInputType.number,设置代码:FilteringTextInputFormatter.digitsOnly
·
TextField(
inputFormatters: [
LengthLimitingTextInputFormatter(11),
FilteringTextInputFormatter.digitsOnly
],
keyboardType: TextInputType.number,
设置代码:FilteringTextInputFormatter.digitsOnly
更多推荐
已为社区贡献8条内容
所有评论(0)