WOITextField constructor

const WOITextField({
  1. Key? key,
  2. WOITextFieldStyle? initialState,
  3. WOITextFieldStyle? activeState,
  4. WOITextFieldStyle? completedState,
  5. WOITextFieldStyle? errorState,
  6. WOITextFieldStyle? disabledState,
  7. ValueChanged<String>? onChange,
  8. ValueChanged? onSubmitted,
  9. TextFieldState textFieldState = TextFieldState.initial,
  10. TextStyle? labelTextStyle,
  11. EdgeInsets? fieldContainerMargin,
  12. TextInputType? textInputType,
  13. TextEditingController? textEditingController,
  14. Color? fillColor,
  15. Widget? suffixIcon,
  16. Widget? prefixIcon,
  17. TextStyle? hintTextStyle,
  18. String hintText = '',
  19. String labelText = '',
  20. String helperText = '',
  21. Function? onTap,
  22. InputBorder? border,
  23. TextStyle? textStyle,
  24. Color? cursorColor,
  25. List<TextInputFormatter>? inputFormatters,
  26. bool showCursor = true,
  27. 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,
});