VField constructor

const VField({
  1. Key? key,
  2. String? text = '',
  3. String hintText = '请输入',
  4. FocusNode? focusNode,
  5. Widget? leftWidget,
  6. Widget? rightWidget,
  7. int? maxLines,
  8. int? maxLength,
  9. bool enabled = true,
  10. List<TextInputFormatter>? inputFormatters,
  11. _InputCallBack? inputCallBack,
  12. _InputCompletionCallBack? inputCompletionCallBack,
  13. TextStyle? textStyle,
  14. TextAlign textAlign = TextAlign.left,
  15. TextEditingController? controller,
  16. TextInputType keyboardType = TextInputType.text,
  17. TextInputAction? textInputAction = TextInputAction.done,
  18. bool isReadonly = false,
  19. bool isMultiline = false,
  20. String? borderColor = "#dcdcdc",
  21. String? focusBorderColor = "#dcdcdc",
  22. int minLines = 1,
  23. bool isShowCounter = true,
  24. EdgeInsetsGeometry? contentPadding,
})

Implementation

const VField({
  Key? key,
  this.text = '',
  this.hintText = '请输入',
  // this.labelText = '',
  // this.errorText = '',
  this.focusNode,
  this.leftWidget,
  this.rightWidget,
  this.maxLines,
  this.maxLength,
  // this.showMaxLength = false,
  this.enabled = true,
  this.inputFormatters,
  this.inputCallBack,
  this.inputCompletionCallBack,
  this.textStyle,
  // this.hintTextStyle,
  // this.labelTextStyle,
  this.textAlign = TextAlign.left,
  this.controller,
  this.keyboardType = TextInputType.text,
  this.textInputAction = TextInputAction.done,
  this.isReadonly = false,
  this.isMultiline = false,
  this.borderColor="#dcdcdc",
  this.focusBorderColor="#dcdcdc",
  this.minLines=1,
  // this.cursorColor,
  this.isShowCounter=true,
  this.contentPadding
}) : super(key: key);