CustomTextFormField constructor

CustomTextFormField({
  1. TextFormFieldShape? shape,
  2. TextFormFieldPadding? padding,
  3. TextFormFieldVariant? variant,
  4. TextFormFieldFontStyle? fontStyle,
  5. Alignment? alignment,
  6. double? width,
  7. EdgeInsetsGeometry? margin,
  8. TextEditingController? controller,
  9. FocusNode? focusNode,
  10. bool? isObscureText = false,
  11. TextInputAction? textInputAction = TextInputAction.next,
  12. TextInputType? textInputType = TextInputType.text,
  13. int? maxLines,
  14. String? hintText,
  15. Widget? prefix,
  16. BoxConstraints? prefixConstraints,
  17. Widget? suffix,
  18. BoxConstraints? suffixConstraints,
  19. bool enabled = true,
  20. dynamic onChanged,
  21. String? trueHintText,
  22. bool disabled = false,
  23. dynamic inputFormatters,
  24. FormFieldValidator<String>? validator,
  25. String color = "#29b3a6",
  26. bool autofocus = false,
})

Implementation

CustomTextFormField(
    {this.shape,
    this.padding,
    this.variant,
    this.fontStyle,
    this.alignment,
    this.width,
    this.margin,
    this.controller,
    this.focusNode,
    this.isObscureText = false,
    this.textInputAction = TextInputAction.next,
    this.textInputType = TextInputType.text,
    this.maxLines,
    this.hintText,
    this.prefix,
    this.prefixConstraints,
    this.suffix,
    this.suffixConstraints,
    this.enabled = true,
    this.onChanged,
    this.trueHintText,
    this.disabled = false,
    this.inputFormatters,
    this.validator, this.color="#29b3a6", this.autofocus=false});