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. Color? borderColor,
  21. Color? focusBorderColor,
  22. int minLines = 1,
  23. Color? cursorColor,
  24. Color? bgColor,
  25. bool isShowCounter = true,
  26. EdgeInsetsGeometry? contentPadding,
  27. bool showRedStar = false,
  28. bool reserveStarSpace = true,
  29. _FocusLostCallBack? onFocusLost,
  30. _TapOutsideCallBack? onTapOutside,
})

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,
  this.focusBorderColor,
  this.minLines=1,
  // this.cursorColor,
  this.cursorColor,
  this.bgColor,
  this.isShowCounter=true,
  this.contentPadding,
  this.showRedStar = false,
  this.reserveStarSpace = true,
  this.onFocusLost,
  this.onTapOutside,
}) : super(key: key);