VField constructor
const
VField({
- Key? key,
- String? text = '',
- String hintText = '请输入',
- FocusNode? focusNode,
- Widget? leftWidget,
- Widget? rightWidget,
- int? maxLines,
- int? maxLength,
- bool enabled = true,
- List<
TextInputFormatter> ? inputFormatters, - _InputCallBack? inputCallBack,
- _InputCompletionCallBack? inputCompletionCallBack,
- TextStyle? textStyle,
- TextAlign textAlign = TextAlign.left,
- TextEditingController? controller,
- TextInputType keyboardType = TextInputType.text,
- TextInputAction? textInputAction = TextInputAction.done,
- bool isReadonly = false,
- bool isMultiline = false,
- String? borderColor = "#dcdcdc",
- String? focusBorderColor = "#dcdcdc",
- int minLines = 1,
- bool isShowCounter = true,
- 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);