カーソルをリリース
FocusScope.of(context).unfocus()
入力タイプ
keyboardType: TextInputType.number,
キーボードのキータイプの右下隅
textInputAction: TextInputAction.done,
カーソルの色
cursorColor: Colors.orange,
アンダースコアを削除
decoration: InputDecoration(
hintText: '请输入验证码', //placeholder
border: InputBorder.none, //隐藏下划线
),
入力制限
inputFormatters: [
LengthLimitingTextInputFormatter(11) //最多允许输入11位
],