VField2 constructor

const VField2({
  1. Key? key,
  2. String? text = '',
  3. String hintText = '',
  4. String? labelText,
  5. TextEditingController? controller,
  6. TextInputType keyboardType = TextInputType.text,
  7. TextInputAction? textInputAction = TextInputAction.done,
  8. FocusNode? focusNode,
  9. bool isPwd = false,
  10. Widget? leftWidget,
  11. Widget? rightWidget,
  12. int? maxLength,
  13. bool isShowDeleteBtn = false,
  14. List<TextInputFormatter>? inputFormatters,
  15. _InputCallBack? inputCallBack,
  16. _InputCompletionCallBack? inputCompletionCallBack,
  17. String? pwdOpen,
  18. String? pwdClose,
  19. bool isDense = false,
  20. EdgeInsetsGeometry? contentPadding,
  21. bool showRedStar = false,
  22. TextStyle? hintStyle,
  23. TextStyle? textStyle,
  24. double? pwdEyeSize,
  25. String? pwdEyeColor,
  26. Color? focusBorderColor,
  27. Color? cursorColor,
  28. Color? unfocusBorderColor,
  29. TextAlign? textAlign,
  30. bool isReadonly = false,
  31. bool reserveStarSpace = true,
  32. bool hideLine = false,
  33. Color? searchBgColor,
  34. VoidCallback? clickInput,
  35. bool longShowDel = false,
  36. bool isAllBorder = false,
  37. String? label,
  38. double? labelWidth,
  39. TextStyle? labelStyle,
  40. bool isDisabled = false,
  41. _FocusLostCallBack? onFocusLost,
  42. _TapOutsideCallBack? onTapOutside,
  43. VoidCallback? onNext,
})

Implementation

const VField2(
    {Key? key,
      this.text = '',
      this.hintText = '',
      this.labelText,
      this.controller, //有text呢,还有回调事件  这个可以在页面不传
      this.keyboardType = TextInputType.text,
      this.textInputAction = TextInputAction.done,
      this.focusNode,
      this.isPwd = false,
      this.leftWidget,
      this.rightWidget,
      this.maxLength,
      this.isShowDeleteBtn = false,
      this.inputFormatters,
      this.inputCallBack,
      this.inputCompletionCallBack,
      this.pwdOpen,
      this.pwdClose,
      // this.border,
      this.isDense = false, //设置为true则输入框的文本垂直方向空隙更小
      this.contentPadding,
      this.showRedStar = false,
      // this.hintFontSize = 17,
      // this.hintColor,
      this.hintStyle,
      this.textStyle,
      this.pwdEyeSize,
      this.pwdEyeColor,
      // this.isShowBorder = true,
      this.focusBorderColor,
      this.cursorColor,
      this.unfocusBorderColor,
      this.textAlign,
      this.isReadonly = false,
      this.reserveStarSpace = true,
      this.hideLine = false,
      this.searchBgColor,
      this.clickInput,
      this.longShowDel = false,
      this.isAllBorder = false,
      this.label,
      this.labelWidth,
      this.labelStyle,
      this.isDisabled = false,
      this.onFocusLost,
      this.onTapOutside,
      this.onNext})
    : super(key: key);