CommonTextField constructor
const
CommonTextField({
- Key? key,
- String text = '',
- TextInputType keyboardType = TextInputType.text,
- String hintText = '请输入',
- FocusNode? focusNode,
- Widget? leftWidget,
- Widget? rightWidget,
- int? maxLines,
- int maxLength = _maxLength,
- bool showMaxLength = false,
- bool enabled = true,
- List<
TextInputFormatter> ? inputFormatters, - _InputCallBack? inputCallBack,
- TextStyle textStyle = _textStyle,
- TextStyle hintTextStyle = _hintTextStyle,
- TextAlign textAlign = TextAlign.left,
- InputBorder border = InputBorder.none,
Implementation
const CommonTextField({
Key? key,
this.text = '',
this.keyboardType: TextInputType.text,
this.hintText: '请输入',
this.focusNode,
this.leftWidget,
this.rightWidget,
this.maxLines,
this.maxLength: _maxLength,
this.showMaxLength: false,
this.enabled = true,
this.inputFormatters,
this.inputCallBack,
this.textStyle = _textStyle,
this.hintTextStyle = _hintTextStyle,
this.textAlign = TextAlign.left,
this.border = InputBorder.none, //去掉下划线
}) : super(key: key);