一个发送验证码的需求:包括限制文本框输入长度和只允许输入数字
按惯例 先上图:
class MyBody extends StatefulWidget {
@override
_MyBodyState...0xff333333)),),
Expanded(
child: Padding(padding: EdgeInsets.only(left: 15,right: 15,top: 15),
child: TextFormField...),),
),
Container(
width: 120,
child: FlatButton(
disabledColor: Colors.grey.withOpacity(0.1), //按钮禁用时的颜色...disabledTextColor: Colors.white, //按钮禁用时的文本颜色
textColor:isButtonEnable?