Release the cursor
FocusScope.of(context).unfocus()
Input Type
keyboardType: TextInputType.number,
Lower right corner of the keyboard keys type
textInputAction: TextInputAction.done,
The cursor color
cursorColor: Colors.orange,
Remove the underscore
decoration: InputDecoration(
hintText: '请输入验证码', //placeholder
border: InputBorder.none, //隐藏下划线
),
Input limit
inputFormatters: [
LengthLimitingTextInputFormatter(11) //最多允许输入11位
],