CommonTextField constructor

const CommonTextField({
  1. Key? key,
  2. String text = '',
  3. TextInputType keyboardType = TextInputType.text,
  4. String hintText = '请输入',
  5. FocusNode? focusNode,
  6. Widget? leftWidget,
  7. Widget? rightWidget,
  8. int? maxLines,
  9. int maxLength = _maxLength,
  10. bool showMaxLength = false,
  11. bool enabled = true,
  12. List<TextInputFormatter>? inputFormatters,
  13. _InputCallBack? inputCallBack,
  14. TextStyle textStyle = _textStyle,
  15. TextStyle hintTextStyle = _hintTextStyle,
  16. TextAlign textAlign = TextAlign.left,
  17. 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);