CustomInput constructor
const
CustomInput({
- Key? key,
- required TextEditingController controller,
- required String labelText,
- required String hintText,
- TextInputType keyboardType = TextInputType.text,
- bool obscureText = false,
- required void onChanged(),
- IconData? prefixIcon,
- String? errorText,
Implementation
const CustomInput({
super.key,
required this.controller,
required this.labelText,
required this.hintText,
this.keyboardType = TextInputType.text,
this.obscureText = false,
required this.onChanged,
this.prefixIcon,
this.errorText,
});