CustomTextFieldWidget constructor

const CustomTextFieldWidget({
  1. Key? key,
  2. String? labelText,
  3. String? hintText,
  4. TextEditingController? controller,
  5. Widget? prefixIcon,
  6. Widget? suffixIcon,
  7. TextInputType keyboardType = TextInputType.text,
  8. FormFieldValidator<String?>? validator = Validators.validateEmpty,
  9. ValueChanged<String?>? onChanged,
  10. ValueChanged<String?>? onSaved,
  11. int maxLines = 1,
  12. int minLines = 1,
  13. List<TextInputFormatter>? inputFormatters,
  14. String? initialValue,
  15. bool readOnly = false,
  16. bool obscureText = false,
  17. dynamic onTap()?,
  18. Widget? suffix,
  19. bool enabled = true,
  20. AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
  21. bool addHint = false,
  22. BoxConstraints? suffixIconConstraints,
  23. String? prefixText,
  24. String? suffixText,
  25. bool? isDense,
  26. EdgeInsets? prefixIconPadding,
  27. Color? fillColor,
  28. TextInputAction? textInputAction,
})

Implementation

const CustomTextFieldWidget({
  Key? key,
  this.labelText,
  this.hintText,
  this.controller,
  this.prefixIcon,
  this.suffixIcon,
  this.keyboardType = TextInputType.text,
  this.validator = Validators.validateEmpty,
  this.onChanged,
  this.onSaved,
  this.maxLines=1,
  this.minLines = 1,
  this.inputFormatters,
  this.initialValue,
  this.readOnly = false,
  this.obscureText = false,
  this.onTap,
  this.suffix,
  this.enabled = true,
  this.autovalidateMode = AutovalidateMode.onUserInteraction,
  this.addHint = false,
  this.suffixIconConstraints,
  this.prefixText,
  this.suffixText,
  this.isDense,
  this.prefixIconPadding,
  this.fillColor,
  this.textInputAction
}) : super(key: key);