CustomTextFormField constructor

const CustomTextFormField({
  1. Key? key,
  2. required String label,
  3. required String formControlName,
  4. String? hint,
  5. Widget? suffix,
  6. int minLines = 1,
  7. int maxLines = 1,
  8. ControlValueAccessor<dynamic, String>? valueAccessor,
  9. int? maxLength,
  10. VoidCallback? onTap,
  11. FocusNode? focusNode,
  12. Map<String, String Function(Object control)>? validationMessages,
  13. Widget? suffixIcon,
  14. TextInputType keyboardType = TextInputType.text,
  15. TextCapitalization textCapitalization = TextCapitalization.sentences,
  16. bool obscureText = false,
  17. bool isRequired = false,
  18. bool readOnly = false,
  19. void onChanged(
    1. FormControl
    )?,
  20. int? minLength,
  21. List<FilteringTextInputFormatter>? inputFormatter,
  22. Widget? prefixIcon,
  23. String? prefixText,
  24. String? hintText,
  25. TextStyle? labelStyle,
  26. EdgeInsets? padding,
})

Implementation

const CustomTextFormField(
    {super.key,
    required this.label,
    required this.formControlName,
    this.hint,
    this.suffix,
    this.minLines = 1,
    this.maxLines = 1,
    this.valueAccessor,
    this.maxLength,
    this.onTap,
    this.focusNode,
    this.validationMessages,
    this.suffixIcon,
    this.keyboardType = TextInputType.text,
    this.textCapitalization = TextCapitalization.sentences,
    this.obscureText = false,
    this.isRequired = false,
    this.readOnly = false,
    this.onChanged,
    this.minLength,
    this.inputFormatter,
    this.prefixIcon,
    this.prefixText,
    this.hintText,
    this.labelStyle,
    this.padding});