CustomTextField constructor
const
CustomTextField({
- Key? key,
- TextEditingController? controller,
- String? label,
- String? hintText,
- IconData? prefixIcon,
- Widget? suffixIcon,
- bool obscureText = false,
- TextInputType? keyboardType,
- String? validator()?,
- void onChanged()?,
- int maxLines = 1,
- bool readOnly = false,
- VoidCallback? onTap,
Implementation
const CustomTextField({
super.key,
this.controller,
this.label,
this.hintText,
this.prefixIcon,
this.suffixIcon,
this.obscureText = false,
this.keyboardType,
this.validator,
this.onChanged,
this.maxLines = 1,
this.readOnly = false,
this.onTap,
});