CustomTextField constructor
const
CustomTextField({
- Key? key,
- String? label,
- TextStyle? labelStyle,
- String? hint,
- TextEditingController? controller,
- String? validator()?,
- TextInputType? keyboardType,
- InputDecoration? inputDecoration,
- bool obscureText = false,
- Widget? prefixIcon,
- Widget? suffixIcon,
- String? errorMsg,
- Color? errorColor,
- void onChanged()?,
- Color? borderColor,
- Color? focusedBorderColor,
- Color? textColor,
- Color? hintColor,
- Color? iconColor,
- bool isDisabled = false,
- bool isOptionalMark = false,
- Color? disabledBorderColor,
- Color? disabledTextColor,
- Color? disabledBackgroundColor,
Implementation
const CustomTextField({
Key? key,
this.label,
this.labelStyle,
this.hint,
this.controller,
this.validator,
this.keyboardType,
this.inputDecoration,
this.obscureText = false,
this.prefixIcon,
this.suffixIcon,
this.errorMsg,
this.errorColor,
this.onChanged,
this.borderColor,
this.focusedBorderColor,
this.textColor,
this.hintColor,
this.iconColor,
this.isDisabled = false,
this.isOptionalMark = false,
this.disabledBorderColor,
this.disabledTextColor,
this.disabledBackgroundColor,
}) : super(key: key);