VField2 constructor
const
VField2({
- Key? key,
- String? text = '',
- String hintText = '',
- String? labelText,
- TextEditingController? controller,
- TextInputType keyboardType = TextInputType.text,
- TextInputAction? textInputAction = TextInputAction.done,
- FocusNode? focusNode,
- bool isPwd = false,
- Widget? leftWidget,
- Widget? rightWidget,
- int? maxLength,
- bool isShowDeleteBtn = false,
- List<
TextInputFormatter> ? inputFormatters, - _InputCallBack? inputCallBack,
- _InputCompletionCallBack? inputCompletionCallBack,
- String? pwdOpen,
- String? pwdClose,
- bool isDense = false,
- EdgeInsetsGeometry? contentPadding,
- bool showRedStar = false,
- TextStyle? hintStyle,
- TextStyle? textStyle,
- double pwdEyeSize = 22,
- String? pwdEyeColor,
- String? focusBorderColor,
- String? unfocusBorderColor,
- TextAlign? textAlign,
- bool isReadonly = false,
- bool needStarPlaceholder = true,
- bool hideLine = false,
- Color? searchBgColor,
- VoidCallback? clickInput,
- bool longShowDel = false,
- bool isAllBorder = false,
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 = 22,
this.pwdEyeColor,
// this.isShowBorder = true,
this.focusBorderColor,
// this.cursorColor,
this.unfocusBorderColor,
this.textAlign,
this.isReadonly = false,
this.needStarPlaceholder = true,
this.hideLine = false,
this.searchBgColor,
this.clickInput,
this.longShowDel = false, this.isAllBorder = false})
: super(key: key);