CustomInputFormField constructor

CustomInputFormField({
  1. required TextEditingController controller,
  2. required FocusNode focusNode,
  3. required ValueChanged<String> onChange,
  4. Key? key,
  5. FocusNode? focusNodeNext,
  6. GestureTapCallback? onClearIconTap,
  7. Widget? clearIcon,
  8. Color? focusBorderColor,
  9. bool hasClearIcon = false,
  10. dynamic onSubmit(
    1. String
    )?,
  11. int maxLine = 1,
  12. IconData? prefixIcon,
  13. Widget? suffixIcon,
  14. TextStyle? hintTextStyle,
  15. TextStyle? titleStyle,
  16. TextStyle? labelTextStyle,
  17. TextStyle? contentStyle,
  18. Widget? titleIcon,
  19. bool hasTitleIcon = false,
  20. String? title,
  21. EdgeInsetsGeometry? contentPadding,
  22. EdgeInsetsGeometry? textFormFieldMargin,
  23. bool hasTitle = false,
  24. String? hintText,
  25. String? labelText,
  26. bool hasPrefixIcon = false,
  27. bool hasSuffixIcon = false,
  28. bool isPassword = false,
  29. TextInputType textInputType = TextInputType.phone,
  30. FormFieldValidator<String>? validator,
  31. List<TextInputFormatter>? inputFormatters,
  32. double? width,
  33. double? height,
  34. Color? backgroundColor,
  35. TextInputAction textInputAction = TextInputAction.done,
  36. bool hasEmpty = false,
  37. bool isBoxShadow = false,
  38. String? textValue,
  39. AutovalidateMode autovalidate = AutovalidateMode.onUserInteraction,
  40. bool? isEnable = true,
  41. int? maxLenght = 200,
  42. bool isPasswordVisible = false,
  43. Widget? prefixIconCustom,
  44. GestureTapCallback? onSuffixIconTap,
  45. Color? iconColor,
  46. Color? disableBorderColor,
  47. Color? enabledBorder,
  48. Color? border,
  49. TextStyle? floatingLabelStyle,
  50. double? radius,
  51. TextStyle? errorStyle,
  52. bool isThemeTitleTop = false,
  53. TextAlign? textAlign,
})

Implementation

CustomInputFormField(
    {required this.controller,
    required this.focusNode,
    required this.onChange,
    this.key,
    this.focusNodeNext,
    this.onClearIconTap,
    this.clearIcon,
    this.focusBorderColor,
    this.hasClearIcon = false,
    this.onSubmit,
    this.maxLine = 1,
    this.prefixIcon,
    this.suffixIcon,
    this.hintTextStyle,
    this.titleStyle,
    this.labelTextStyle,
    this.contentStyle,
    this.titleIcon,
    this.hasTitleIcon = false,
    this.title,
    this.contentPadding,
    this.textFormFieldMargin,
    this.hasTitle = false,
    this.hintText,
    this.labelText,
    this.hasPrefixIcon = false,
    this.hasSuffixIcon = false,
    this.isPassword = false,
    this.textInputType = TextInputType.phone,
    this.validator,
    this.inputFormatters,
    this.width,
    this.height,
    this.backgroundColor,
    this.textInputAction = TextInputAction.done,
    this.hasEmpty = false,
    this.isBoxShadow = false,
    this.textValue,
    this.autovalidate = AutovalidateMode.onUserInteraction,
    this.isEnable = true,
    this.maxLenght = 200,
    this.isPasswordVisible = false,
    this.prefixIconCustom,
    this.onSuffixIconTap,
    this.iconColor,
    this.disableBorderColor,
    this.enabledBorder,
    this.border,
    this.floatingLabelStyle,
    this.radius,
    this.errorStyle,
    this.isThemeTitleTop = false,
    this.textAlign});