VxTextField constructor
const
VxTextField({
- Key? key,
- TextEditingController? controller,
- String? hint,
- 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,
Implementation
const VxTextField(
{Key? key,
this.controller,
this.hint,
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})
: super(key: key);