VxTextField constructor
const
VxTextField({
- Key? key,
- TextEditingController? controller,
- String? hint,
- TextStyle? hintStyle,
- String? value,
- bool clear = true,
- bool isPassword = false,
- bool obscureText = false,
- VxTextFieldBorderType borderType = VxTextFieldBorderType.underLine,
- int? maxLine = 1,
- int? maxLength,
- TextAlign textAlign = TextAlign.left,
- Color? fillColor,
- Color? borderColor,
- Widget? prefixIcon,
- double height = 40,
- Widget? icon,
- double? borderRadius,
- double? contentPaddingLeft,
- double? contentPaddingTop,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- List<
TextInputFormatter> ? inputFormatters, - ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - VoidCallback? onEditingComplete,
- FocusNode? focusNode,
- String? counterText,
- bool autofocus = false,
- TextStyle? style,
- String? labelText,
- TextStyle? labelStyle,
- Color? cursorColor,
- Color? suffixColor,
- bool autocorrect = true,
- double? cursorHeight,
- Radius? cursorRadius,
- double cursorWidth = 2.0,
- bool enableSuggestions = true,
- bool? enabled,
- bool? showCursor,
- Widget contextMenuBuilder()?,
- dynamic onSaved()?,
- String? validator()?,
- AutovalidateMode? autovalidateMode,
- bool readOnly = false,
- String? initialValue,
Implementation
const VxTextField({
super.key,
this.controller,
this.hint,
this.hintStyle,
this.value,
this.clear = true,
this.isPassword = false,
this.obscureText = false,
this.borderType = VxTextFieldBorderType.underLine,
this.maxLine = 1,
this.maxLength,
this.textAlign = TextAlign.left,
this.fillColor,
this.borderColor,
this.prefixIcon,
this.height = 40,
this.icon,
this.borderRadius,
this.contentPaddingLeft,
this.contentPaddingTop,
this.keyboardType,
this.textInputAction,
this.inputFormatters,
this.onChanged,
this.onSubmitted,
this.onEditingComplete,
this.focusNode,
this.counterText,
this.autofocus = false,
this.style,
this.labelText,
this.labelStyle,
this.cursorColor,
this.suffixColor,
this.autocorrect = true,
this.cursorHeight,
this.cursorRadius,
this.cursorWidth = 2.0,
this.enableSuggestions = true,
this.enabled,
this.showCursor,
this.contextMenuBuilder,
this.onSaved,
this.validator,
this.autovalidateMode,
this.readOnly = false,
this.initialValue,
}) : assert(initialValue == null || controller == null);