BaseTextField constructor

const BaseTextField({
  1. Key? key,
  2. String? value,
  3. TextEditingController? controller,
  4. Widget? searchText,
  5. ValueCallback<String>? searchTextTap,
  6. DecoratorPositioned searchTextPositioned = DecoratorPositioned.outer,
  7. SendSMSValueCallback? sendSMSTap,
  8. ValueTwoCallbackT<Widget, SendState, int>? sendSMSTextBuilder,
  9. DecoratorPositioned sendSMSPositioned = DecoratorPositioned.outer,
  10. bool enableEye = false,
  11. ValueCallbackTV<Widget, bool>? eyeIconBuilder,
  12. bool enableClearIcon = false,
  13. Widget? clearIcon,
  14. bool enableSearchIcon = false,
  15. Widget? searchIcon,
  16. String? hintText,
  17. double width = double.infinity,
  18. double? height,
  19. EdgeInsetsGeometry? margin,
  20. EdgeInsetsGeometry? padding,
  21. TextStyle? hintStyle,
  22. FocusNode? focusNode,
  23. Widget? header,
  24. String? heroTag,
  25. Widget? footer,
  26. String? labelText,
  27. TextStyle? labelStyle,
  28. bool disposeController = true,
  29. bool hasFocusChangeBorder = true,
  30. Color? fillColor,
  31. List<DecoratorEntry> suffix = const [],
  32. List<DecoratorEntry> prefix = const [],
  33. BoxConstraints? constraints,
  34. BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(4)),
  35. BorderType borderType = BorderType.outline,
  36. BorderSide borderSide = const BorderSide(color: UCS.lineColor, width: 1),
  37. BorderSide? focusBorderSide,
  38. EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(horizontal: 10, vertical: 6),
  39. OverlayVisibilityMode clearButtonMode = OverlayVisibilityMode.never,
  40. TextInputAction textInputAction = TextInputAction.done,
  41. TextCapitalization textCapitalization = TextCapitalization.none,
  42. TextStyle? style,
  43. StrutStyle? strutStyle,
  44. TextAlign textAlign = TextAlign.left,
  45. TextAlignVertical? textAlignVertical,
  46. TextDirection? textDirection,
  47. bool readOnly = false,
  48. bool? showCursor,
  49. bool autoFocus = false,
  50. String obscuringCharacter = '•',
  51. bool autocorrect = true,
  52. SmartDashesType? smartDashesType,
  53. SmartQuotesType? smartQuotesType,
  54. bool enableSuggestions = true,
  55. int? maxLines,
  56. int? minLines,
  57. bool expands = false,
  58. int? maxLength,
  59. MaxLengthEnforcement? maxLengthEnforcement,
  60. ValueChanged<String>? onChanged,
  61. ValueCallback<TextEditingController>? onEditingComplete,
  62. ValueChanged<String>? onSubmitted,
  63. List<TextInputFormatter>? inputFormatters,
  64. bool enabled = true,
  65. double cursorWidth = 2.0,
  66. double? cursorHeight,
  67. Radius cursorRadius = const Radius.circular(2.0),
  68. BoxHeightStyle selectionHeightStyle = ui.BoxHeightStyle.tight,
  69. BoxWidthStyle selectionWidthStyle = ui.BoxWidthStyle.tight,
  70. Brightness? keyboardAppearance,
  71. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  72. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  73. bool? enableInteractiveSelection,
  74. TextSelectionControls? selectionControls,
  75. GestureTapCallback? onTap,
  76. ScrollController? scrollController,
  77. ScrollPhysics? scrollPhysics,
  78. Iterable<String>? autofillHints = const [],
  79. Clip clipBehavior = Clip.hardEdge,
  80. String? restorationId,
  81. bool scribbleEnabled = true,
  82. bool enableIMEPersonalizedLearning = true,
  83. TextInputLimitFormatter textInputType = TextInputLimitFormatter.text,
  84. EditableTextContextMenuBuilder? contextMenuBuilder,
  85. TextMagnifierConfiguration? magnifierConfiguration,
  86. TapRegionCallback? onTapOutside,
  87. SpellCheckConfiguration? spellCheckConfiguration,
})

Implementation

const BaseTextField({
  super.key,
  this.value,
  this.controller,
  this.searchText,
  this.searchTextTap,
  this.searchTextPositioned = DecoratorPositioned.outer,
  this.sendSMSTap,
  this.sendSMSTextBuilder,
  this.sendSMSPositioned = DecoratorPositioned.outer,
  this.enableEye = false,
  this.eyeIconBuilder,
  this.enableClearIcon = false,
  this.clearIcon,
  this.enableSearchIcon = false,
  this.searchIcon,
  this.hintText,
  this.width = double.infinity,
  this.height,
  this.margin,
  this.padding,
  this.hintStyle,
  this.focusNode,
  this.header,
  this.heroTag,
  this.footer,
  this.labelText,
  this.labelStyle,
  this.disposeController = true,
  this.hasFocusChangeBorder = true,
  this.fillColor,
  this.suffix = const [],
  this.prefix = const [],
  this.constraints,
  this.borderRadius = const BorderRadius.all(Radius.circular(4)),
  this.borderType = BorderType.outline,
  this.borderSide = const BorderSide(color: UCS.lineColor, width: 1),
  this.focusBorderSide,
  this.contentPadding =
      const EdgeInsets.symmetric(horizontal: 10, vertical: 6),
  this.clearButtonMode = OverlayVisibilityMode.never,
  this.textInputAction = TextInputAction.done,
  this.textCapitalization = TextCapitalization.none,
  this.style,
  this.strutStyle,
  this.textAlign = TextAlign.left,
  this.textAlignVertical,
  this.textDirection,
  this.readOnly = false,
  this.showCursor,
  this.autoFocus = false,
  this.obscuringCharacter = '•',
  this.autocorrect = true,
  this.smartDashesType,
  this.smartQuotesType,
  this.enableSuggestions = true,
  this.maxLines,
  this.minLines,
  this.expands = false,
  this.maxLength,
  this.maxLengthEnforcement,
  this.onChanged,
  this.onEditingComplete,
  this.onSubmitted,
  this.inputFormatters,
  this.enabled = true,
  this.cursorWidth = 2.0,
  this.cursorHeight,
  this.cursorRadius = const Radius.circular(2.0),
  this.selectionHeightStyle = ui.BoxHeightStyle.tight,
  this.selectionWidthStyle = ui.BoxWidthStyle.tight,
  this.keyboardAppearance,
  this.scrollPadding = const EdgeInsets.all(20.0),
  this.dragStartBehavior = DragStartBehavior.start,
  this.enableInteractiveSelection,
  this.selectionControls,
  this.onTap,
  this.scrollController,
  this.scrollPhysics,
  this.autofillHints = const [],
  this.clipBehavior = Clip.hardEdge,
  this.restorationId,
  this.scribbleEnabled = true,
  this.enableIMEPersonalizedLearning = true,
  this.textInputType = TextInputLimitFormatter.text,
  this.contextMenuBuilder,
  this.magnifierConfiguration,
  this.onTapOutside,
  this.spellCheckConfiguration,
});