CustomTextField constructor
const
CustomTextField({ - Key? key,
- required TextEditingController controller,
- Color? topContainerColor,
- required String labelText,
- double? labelSize,
- required String hintText,
- TextInputType textInputType = TextInputType.text,
- bool enabled = true,
- Widget? suffixIcon,
- bool? isMandatory,
- List<String>? autoFillHints,
- dynamic onChanged(
- String
)?,
- void onSubmit()?,
- VoidCallback? onTap,
})
Implementation
const CustomTextField({
super.key,
required this.controller,
this.topContainerColor,
required this.labelText,
this.labelSize,
required this.hintText,
this.textInputType = TextInputType.text,
this.enabled = true,
this.suffixIcon,
this.isMandatory,
this.autoFillHints,
this.onChanged,
this.onSubmit,
this.onTap
});