flutter TextField 只能英文数字以及长度控制

inputFormatters: [
//只允许输入字母数字*
WhitelistingTextInputFormatter(RegExp("[a-zA-Z]|[0-9.]")),
LengthLimitingTextInputFormatter(10)
],
原文地址:https://www.cnblogs.com/wupeng88/p/12915874.html