BasicTextField constructor

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

Implementation

const BasicTextField(
    {super.key,
    this.value,
    this.controller,
    this.searchTextTap,
    this.searchTextPositioned = DecoratorPositioned.outer,
    this.sendSMSPositioned = DecoratorPositioned.outer,
    this.sendSMSTap,
    this.enableEye = false,
    this.enableClearIcon = false,
    this.enableSearchIcon = false,
    this.hintText,
    this.width = double.infinity,
    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.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 = 1,
    this.minLines = 1,
    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});