CustomTextField3 constructor
const
CustomTextField3({
- Key? key,
- TextEditingController? controller,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextAlign textAlign = TextAlign.start,
- TextAlignVertical? textAlignVertical,
- TextDirection? textDirection,
- bool readOnly = false,
- int? minLines,
- int? maxLength,
- bool obscureText = false,
- TextInputType? keyboardType,
- Widget? icon,
- Color? iconColor,
- String? hintText,
- bool? filled,
- Color? fillColor,
- Color? focusColor,
- Color? hoverColor,
- void onChanged()?,
- double? height,
- double? width,
- double? hintSize,
- double? fontSize,
- BoxBorder? border,
- BorderRadiusGeometry? borderRadius,
- List<
BoxShadow> ? boxShadow, - EdgeInsetsGeometry? contentPadding,
- double? cursorHeight,
- Color? cursorColor,
- Widget? prefixIcon,
- Widget? suffixIcon,
- BorderRadius? fieldRadius,
- bool? enabled,
- int? maxLines,
- void onTap()?,
- bool autofocus = false,
- void onSaved()?,
- String? validator()?,
- EdgeInsetsGeometry? margin,
- Color? hintColor,
- String? errorText,
- BorderSide? borderSide,
- Color? textColor,
- FontWeight? fontWeight,
- FontWeight? hintWeight,
- TextInputAction? textInputAction,
- AutovalidateMode? autovalidateMode = AutovalidateMode.onUserInteraction,
- List<
String> ? dropdownItems, - String? dropdownValue,
- void onDropdownChanged()?,
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,
});