CustomTextField constructor
const
CustomTextField({
- Key? key,
- TextEditingController? controller,
- String? placeholder,
- IconData? prefixIcon,
- Widget? suffix,
- bool obscure = false,
- TextInputType keyboardType = TextInputType.text,
- String? validator()?,
- ValueChanged<
String> ? onChanged, - int maxLines = 1,
Implementation
const CustomTextField({
super.key,
this.controller,
this.placeholder,
this.prefixIcon,
this.suffix,
this.obscure = false,
this.keyboardType = TextInputType.text,
this.validator,
this.onChanged,
this.maxLines = 1,
});