CustomTextField3 constructor

const CustomTextField3({
  1. Key? key,
  2. TextEditingController? controller,
  3. TextStyle? style,
  4. StrutStyle? strutStyle,
  5. TextAlign textAlign = TextAlign.start,
  6. TextAlignVertical? textAlignVertical,
  7. TextDirection? textDirection,
  8. bool readOnly = false,
  9. int? minLines,
  10. int? maxLength,
  11. bool obscureText = false,
  12. TextInputType? keyboardType,
  13. Widget? icon,
  14. Color? iconColor,
  15. String? hintText,
  16. bool? filled,
  17. Color? fillColor,
  18. Color? focusColor,
  19. Color? hoverColor,
  20. void onChanged(
    1. String
    )?,
  21. double? height,
  22. double? width,
  23. double? hintSize,
  24. double? fontSize,
  25. BoxBorder? border,
  26. BorderRadiusGeometry? borderRadius,
  27. List<BoxShadow>? boxShadow,
  28. EdgeInsetsGeometry? contentPadding,
  29. double? cursorHeight,
  30. Color? cursorColor,
  31. Widget? prefixIcon,
  32. Widget? suffixIcon,
  33. BorderRadius? fieldRadius,
  34. bool? enabled,
  35. int? maxLines,
  36. void onTap()?,
  37. bool autofocus = false,
  38. void onSaved(
    1. String?
    )?,
  39. String? validator(
    1. String?
    )?,
  40. EdgeInsetsGeometry? margin,
  41. Color? hintColor,
  42. String? errorText,
  43. BorderSide? borderSide,
  44. Color? textColor,
  45. FontWeight? fontWeight,
  46. FontWeight? hintWeight,
  47. TextInputAction? textInputAction,
  48. AutovalidateMode? autovalidateMode = AutovalidateMode.onUserInteraction,
  49. List<String>? dropdownItems,
  50. String? dropdownValue,
  51. void onDropdownChanged(
    1. String?
    )?,
})

Implementation

const CustomTextField3({
  super.key,
  this.controller,
  this.style,
  this.strutStyle,
  this.textAlign = TextAlign.start,
  this.textAlignVertical,
  this.textDirection,
  this.readOnly = false,
  this.minLines,
  this.maxLength,
  this.obscureText = false,
  this.keyboardType,
  this.icon,
  this.iconColor,
  this.hintText,
  this.filled,
  this.fillColor,
  this.focusColor,
  this.hoverColor,
  this.onChanged,
  this.height,
  this.width,
  this.hintSize,
  this.fontSize,
  this.border,
  this.borderRadius,
  this.boxShadow,
  this.contentPadding,
  this.cursorHeight,
  this.cursorColor,
  this.prefixIcon,
  this.suffixIcon,
  this.fieldRadius,
  this.enabled,
  this.maxLines,
  this.onTap,
  this.autofocus = false,
  this.onSaved,
  this.validator,
  this.margin,
  this.hintColor,
  this.errorText,
  this.borderSide,
  this.textColor,
  this.fontWeight,
  this.hintWeight,
  this.textInputAction,
  this.autovalidateMode = AutovalidateMode.onUserInteraction, // Autovalidation mode
  this.dropdownItems,
  this.dropdownValue,
  this.onDropdownChanged,
});