TxtFormInput<T> constructor

const TxtFormInput<T>({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? errorMessage,
  4. String? errorLengthMessage,
  5. int? maxLines,
  6. int? minLines,
  7. int? maxLength,
  8. List<TextInputFormatter>? inputFormatters,
  9. TextAlign textAlign = TextAlign.start,
  10. TextCapitalization textCapitalization = TextCapitalization.sentences,
  11. double? textSize,
  12. double? hintTextSize,
  13. Color? textColor,
  14. ValueChanged<String>? onChanged,
  15. GestureTapCallback? onTap,
  16. bool isPassword = false,
  17. TextInputType? keyboardType = TextInputType.text,
  18. TextInputAction? textInputAction,
  19. VoidCallback? onEditingComplete,
  20. FocusNode? focusNode,
  21. String? hintText = '',
  22. Color? hintTextColor,
  23. bool enabled = true,
  24. bool? hasLabel,
  25. bool? hasBorder,
  26. bool? hasLabelOnTop,
  27. bool? showLabelStat,
  28. Widget? postFix,
  29. Widget? preFix,
  30. TextStyle? postFixStyle,
  31. InputDecoration? decoration,
  32. FormFieldValidator<String>? validator,
  33. GlobalKey<FormState>? formKey,
  34. bool isOptional = false,
  35. int? validationLength,
  36. String? labelText,
  37. double? labelPadding,
  38. double? radius,
  39. BorderRadius? borderRadius,
  40. EdgeInsetsGeometry? contentPadding,
  41. Color? fillColor,
  42. Color? borderColor,
  43. double borderWidth = 2,
  44. bool autofocus = false,
  45. bool removeAllBorders = false,
  46. String? prefixText,
  47. double? prefixTextSize,
  48. double? postFixTextSize,
  49. Color? prefixTextColor,
  50. Color? postFixTextColor,
  51. double? height,
  52. TextStyle? labelStyle,
  53. TextStyle? hintStyle,
  54. TextStyle? style,
  55. TextStyle? prefixStyle,
  56. bool hasCounter = false,
  57. BorderSide? borderSide,
  58. bool? appDirectionLeftToRight,
  59. bool? showCursor,
  60. bool? readOnly,
  61. bool? ignoringWithOnTap,
  62. String? validationConditionAddOn()?,
  63. Color? cursorColor,
  64. double errorHeight = 23,
  65. bool showDropDown = false,
  66. List<DropdownMenuItem<T>>? listDropDown,
  67. T? selectedDropDownValue,
  68. dynamic onDropDownChanged(
    1. T? val
    )?,
})

Implementation

const TxtFormInput(
    {super.key,
    this.controller,
    this.errorMessage,
    this.errorLengthMessage,
    this.maxLines,
    this.minLines,
    this.maxLength,
    this.inputFormatters,
    this.textAlign = TextAlign.start,
    this.textCapitalization = TextCapitalization.sentences,
    this.textSize,
    this.hintTextSize,
    this.textColor,
    this.onChanged,
    this.onTap,
    this.isPassword = false,
    this.keyboardType = TextInputType.text,
    this.textInputAction,
    this.onEditingComplete,
    this.focusNode,
    this.hintText = '',
    this.hintTextColor,
    this.enabled = true,
    this.hasLabel,
    this.hasBorder,
    this.hasLabelOnTop,
    this.showLabelStat,
    this.postFix,
    this.preFix,
      this.postFixStyle,
    this.decoration,
    this.validator,
    this.formKey,
    this.isOptional = false,
    this.validationLength,
    this.labelText,
    this.labelPadding,
    this.radius,
    this.borderRadius,
    this.contentPadding,
    this.fillColor,
    this.borderColor,
    this.borderWidth = 2,
    this.autofocus = false,
    this.removeAllBorders = false,
    this.prefixText,
    this.prefixTextSize,
    this.postFixTextSize,
    this.prefixTextColor,
    this.postFixTextColor,
    this.height,
    this.labelStyle,
    this.hintStyle,
    this.style,
    this.prefixStyle,
    this.hasCounter = false,
    this.borderSide,
    this.appDirectionLeftToRight,
    this.showCursor,
    this.readOnly,
    this.ignoringWithOnTap,
      this.validationConditionAddOn,
    this.cursorColor, this.errorHeight = 23, this.showDropDown = false,
      this.listDropDown,
      this.selectedDropDownValue,
      this.onDropDownChanged,

    });