VxTextField constructor

const VxTextField({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? hint,
  4. String? value,
  5. bool clear = true,
  6. bool isPassword = false,
  7. bool obscureText = false,
  8. VxTextFieldBorderType borderType = VxTextFieldBorderType.underLine,
  9. int? maxLine = 1,
  10. int? maxLength,
  11. TextAlign textAlign = TextAlign.left,
  12. Color? fillColor,
  13. Color? borderColor,
  14. Widget? prefixIcon,
  15. double height = 40,
  16. Widget? icon,
  17. double? borderRadius,
  18. double? contentPaddingLeft,
  19. double? contentPaddingTop,
  20. TextInputType? keyboardType,
  21. TextInputAction? textInputAction,
  22. List<TextInputFormatter>? inputFormatters,
  23. ValueChanged<String>? onChanged,
  24. ValueChanged<String>? onSubmitted,
  25. VoidCallback? onEditingComplete,
  26. FocusNode? focusNode,
  27. String? counterText,
  28. bool autofocus = false,
  29. TextStyle? style,
  30. String? labelText,
  31. 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);