ExBaseTextField constructor

const ExBaseTextField({
  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. ExTextFieldBorderType borderType = ExTextFieldBorderType.underLine,
  9. int? minLine = 1,
  10. int? maxLine = 1,
  11. int? maxLength,
  12. TextAlign textAlign = TextAlign.left,
  13. Color? fillColor,
  14. Color? borderColor,
  15. Widget? prefixIcon,
  16. Widget? suffixIcon,
  17. double height = 40,
  18. Widget? icon,
  19. double? borderRadius,
  20. double? contentPaddingLeft,
  21. double? contentPaddingRight,
  22. double? contentPaddingTop,
  23. TextInputType? keyboardType,
  24. TextInputAction? textInputAction,
  25. List<TextInputFormatter>? inputFormatters,
  26. ValueChanged<String>? onChanged,
  27. ValueChanged<String>? onSubmitted,
  28. VoidCallback? onEditingComplete,
  29. FocusNode? focusNode,
  30. String? counterText,
  31. bool autofocus = false,
  32. TextStyle? style,
  33. String? labelText,
  34. TextStyle? labelStyle,
  35. Color? cursorColor,
  36. bool autocorrect = true,
  37. double? cursorHeight,
  38. Radius? cursorRadius,
  39. double cursorWidth = 2.0,
  40. bool enableSuggestions = true,
  41. bool? enabled,
  42. bool? showCursor,
  43. dynamic onSaved(
    1. String?
    )?,
  44. String? validator(
    1. String?
    )?,
  45. AutovalidateMode? autovalidateMode,
  46. Color? borderColorFocus,
  47. String? initialValue,
  48. bool? readOnly,
  49. Function? clearCallback,
})

Implementation

const ExBaseTextField({
  super.key,
  this.controller,
  this.hint,
  this.value,
  this.clear = true,
  this.isPassword = false,
  this.obscureText = false,
  this.borderType = ExTextFieldBorderType.underLine,
  this.minLine = 1,
  this.maxLine = 1,
  this.maxLength,
  this.textAlign = TextAlign.left,
  this.fillColor,
  this.borderColor,
  this.prefixIcon,
  this.suffixIcon,
  this.height = 40,
  this.icon,
  this.borderRadius,
  this.contentPaddingLeft,
  this.contentPaddingRight,
  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.autocorrect = true,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorWidth = 2.0,
  this.enableSuggestions = true,
  this.enabled,
  this.showCursor,
  this.onSaved,
  this.validator,
  this.autovalidateMode,
  this.borderColorFocus,
  this.initialValue,
  this.readOnly,
  this.clearCallback,
});