WOITextField constructor
const
WOITextField({
- Key? key,
- WOITextFieldStyle? initialState,
- WOITextFieldStyle? activeState,
- WOITextFieldStyle? completedState,
- WOITextFieldStyle? errorState,
- WOITextFieldStyle? disabledState,
- ValueChanged<
String> ? onChange, - ValueChanged? onSubmitted,
- TextFieldState textFieldState = TextFieldState.initial,
- TextStyle? labelTextStyle,
- EdgeInsets? fieldContainerMargin,
- TextInputType? textInputType,
- TextEditingController? textEditingController,
- Color? fillColor,
- Widget? suffixIcon,
- Widget? prefixIcon,
- TextStyle? hintTextStyle,
- String hintText = '',
- String labelText = '',
- String helperText = '',
- Function? onTap,
- InputBorder? border,
- TextStyle? textStyle,
- Color? cursorColor,
- List<
TextInputFormatter> ? inputFormatters, - bool showCursor = true,
- List<
BoxShadow> ? boxShadow,
Implementation
const WOITextField({
super.key,
this.initialState,
this.activeState,
this.completedState,
this.errorState,
this.disabledState,
this.onChange,
this.onSubmitted,
this.textFieldState = TextFieldState.initial,
this.labelTextStyle,
this.fieldContainerMargin,
this.textInputType,
this.textEditingController,
this.fillColor,
this.suffixIcon,
this.prefixIcon,
this.hintTextStyle,
this.hintText = '',
this.labelText = '',
this.helperText = '',
this.onTap,
this.border,
this.textStyle,
this.cursorColor,
this.inputFormatters,
this.showCursor = true,
this.boxShadow,
});