FxTextField constructor

FxTextField({
  1. TextEditingController? controller,
  2. FocusNode? focusNode,
  3. InputDecoration? decoration,
  4. TextInputType? keyboardType,
  5. TextInputAction? textInputAction,
  6. TextCapitalization? textCapitalization,
  7. TextStyle? style,
  8. StrutStyle? strutStyle,
  9. TextAlign? textAlign,
  10. TextAlignVertical? textAlignVertical,
  11. TextDirection? textDirection,
  12. bool? autofocus,
  13. String? obscuringCharacter,
  14. bool? obscureText,
  15. bool? autocorrect,
  16. SmartDashesType? smartDashesType,
  17. SmartQuotesType? smartQuotesType,
  18. bool? enableSuggestions,
  19. Brightness? keyboardAppearance,
  20. int? maxLines,
  21. int? minLines,
  22. bool? expands,
  23. bool? readOnly,
  24. Widget contextMenuBuilder(
    1. BuildContext,
    2. EditableTextState
    )?,
  25. bool? showCursor,
  26. int? maxLength,
  27. MaxLengthEnforcement? maxLengthEnforcement,
  28. ValueChanged<String>? onChanged,
  29. VoidCallback? onEditingComplete,
  30. ValueChanged<String>? onSubmitted,
  31. AppPrivateCommandCallback? onAppPrivateCommand,
  32. List<TextInputFormatter>? inputFormatters,
  33. bool? enabled,
  34. double? cursorWidth,
  35. double? cursorHeight,
  36. Radius? cursorRadius,
  37. Color? cursorColor,
  38. BoxHeightStyle? selectionHeightStyle,
  39. BoxWidthStyle? selectionWidthStyle,
  40. EdgeInsets? scrollPadding,
  41. bool? enableInteractiveSelection,
  42. TextSelectionControls? selectionControls,
  43. DragStartBehavior? dragStartBehavior,
  44. GestureTapCallback? onTap,
  45. MouseCursor? mouseCursor,
  46. InputCounterWidgetBuilder? buildCounter,
  47. ScrollPhysics? scrollPhysics,
  48. ScrollController? scrollController,
  49. Iterable<String>? autofillHints,
  50. String? restorationId,
  51. Widget? icon,
  52. String? labelText,
  53. TextStyle? labelStyle,
  54. String? helperText,
  55. TextStyle? helperStyle,
  56. int? helperMaxLines,
  57. String? hintText,
  58. TextStyle? hintStyle,
  59. TextDirection? hintTextDirection,
  60. int? hintMaxLines,
  61. String? errorText,
  62. TextStyle? errorStyle,
  63. int? errorMaxLines,
  64. FloatingLabelBehavior? floatingLabelBehavior,
  65. bool? isCollapsed,
  66. bool? isDense,
  67. EdgeInsetsGeometry? contentPadding,
  68. Widget? prefixIcon,
  69. BoxConstraints? prefixIconConstraints,
  70. Widget? prefix,
  71. String? prefixText,
  72. TextStyle? prefixStyle,
  73. Widget? suffixIcon,
  74. Widget? suffix,
  75. String? suffixText,
  76. TextStyle? suffixStyle,
  77. BoxConstraints? suffixIconConstraints,
  78. Widget? counter,
  79. String? counterText,
  80. TextStyle? counterStyle,
  81. bool? filled,
  82. Color? fillColor,
  83. Color? focusColor,
  84. Color? hoverColor,
  85. InputBorder? errorBorder,
  86. InputBorder? focusedBorder,
  87. InputBorder? focusedErrorBorder,
  88. InputBorder? disabledBorder,
  89. InputBorder? enabledBorder,
  90. InputBorder? border,
  91. bool? textEnabled,
  92. String? semanticCounterText,
  93. bool? alignLabelWithHint,
  94. FxTextFieldType textFieldType = FxTextFieldType.name,
  95. FxTextFieldStyle textFieldStyle = FxTextFieldStyle.outlined,
  96. bool? autoIcon,
  97. Color? enabledBorderColor,
  98. Color? focusedBorderColor,
  99. double? enabledBorderRadius,
  100. double? focusedBorderRadius,
  101. Color? labelTextColor,
  102. Color? prefixIconColor,
  103. Color? suffixIconColor,
  104. bool? autoFocusedBorder,
  105. bool enableHint = true,
  106. Color? textColor,
  107. bool? allowSuffixIcon,
})

Implementation

FxTextField(
    {this.controller,
    this.focusNode,
    this.decoration,
    this.keyboardType,
    this.textInputAction,
    this.textCapitalization,
    this.style,
    this.strutStyle,
    this.textAlign,
    this.textAlignVertical,
    this.textDirection,
    this.autofocus,
    this.obscuringCharacter,
    this.obscureText,
    this.autocorrect,
    this.smartDashesType,
    this.smartQuotesType,
    this.enableSuggestions,
    this.keyboardAppearance,
    this.maxLines,
    this.minLines,
    this.expands,
    this.readOnly,
    this.contextMenuBuilder,
    this.showCursor,
    this.maxLength,
    this.maxLengthEnforcement,
    this.onChanged,
    this.onEditingComplete,
    this.onSubmitted,
    this.onAppPrivateCommand,
    this.inputFormatters,
    this.enabled,
    this.cursorWidth,
    this.cursorHeight,
    this.cursorRadius,
    this.cursorColor,
    this.selectionHeightStyle,
    this.selectionWidthStyle,
    this.scrollPadding,
    this.enableInteractiveSelection,
    this.selectionControls,
    this.dragStartBehavior,
    this.onTap,
    this.mouseCursor,
    this.buildCounter,
    this.scrollPhysics,
    this.scrollController,
    this.autofillHints,
    this.restorationId,
//input decoration properties
    this.icon,
    this.labelText,
    this.labelStyle,
    this.helperText,
    this.helperStyle,
    this.helperMaxLines,
    this.hintText,
    this.hintStyle,
    this.hintTextDirection,
    this.hintMaxLines,
    this.errorText,
    this.errorStyle,
    this.errorMaxLines,
    this.floatingLabelBehavior,
    this.isCollapsed,
    this.isDense,
    this.contentPadding,
    this.prefixIcon,
    this.prefixIconConstraints,
    this.prefix,
    this.prefixText,
    this.prefixStyle,
    this.suffixIcon,
    this.suffix,
    this.suffixText,
    this.suffixStyle,
    this.suffixIconConstraints,
    this.counter,
    this.counterText,
    this.counterStyle,
    this.filled,
    this.fillColor,
    this.focusColor,
    this.hoverColor,
    this.errorBorder,
    this.focusedBorder,
    this.focusedErrorBorder,
    this.disabledBorder,
    this.enabledBorder,
    this.border,
    this.textEnabled,
    this.semanticCounterText,
    this.alignLabelWithHint,
    this.textFieldType = FxTextFieldType.name,
    this.textFieldStyle = FxTextFieldStyle.outlined,
    this.autoIcon,
    this.enabledBorderColor,
    this.focusedBorderColor,
    this.enabledBorderRadius,
    this.focusedBorderRadius,
    this.labelTextColor,
    this.prefixIconColor,
    this.suffixIconColor,
    this.autoFocusedBorder,
    this.enableHint=true, this.textColor,this.allowSuffixIcon});