CustomTextField constructor

const CustomTextField({
  1. Key? key,
  2. required TextEditingController controller,
  3. Color? topContainerColor,
  4. required String labelText,
  5. double? labelSize,
  6. required String hintText,
  7. TextInputType textInputType = TextInputType.text,
  8. bool enabled = true,
  9. Widget? suffixIcon,
  10. bool? isMandatory,
  11. List<String>? autoFillHints,
  12. dynamic onChanged(
    1. String
    )?,
  13. void onSubmit()?,
  14. 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
});