BasicTextField constructor
const
BasicTextField({
- Key? key,
- String? value,
- TextEditingController? controller,
- ValueCallback<
String> ? searchTextTap, - DecoratorPositioned searchTextPositioned = DecoratorPositioned.outer,
- DecoratorPositioned sendSMSPositioned = DecoratorPositioned.outer,
- SendSMSValueCallback? sendSMSTap,
- bool enableEye = false,
- bool enableClearIcon = false,
- bool enableSearchIcon = false,
- String? hintText,
- double width = double.infinity,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- TextStyle? hintStyle,
- FocusNode? focusNode,
- Widget? header,
- String? heroTag,
- String? labelText,
- TextStyle? labelStyle,
- bool disposeController = true,
- bool hasFocusChangeBorder = true,
- Color? fillColor,
- List<
DecoratorEntry> suffix = const [], - List<
DecoratorEntry> prefix = const [], - BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(4)),
- BorderType borderType = BorderType.outline,
- BorderSide borderSide = const BorderSide(color: UCS.lineColor, width: 1),
- BorderSide? focusBorderSide,
- EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(horizontal: 10, vertical: 6),
- OverlayVisibilityMode clearButtonMode = OverlayVisibilityMode.never,
- TextInputAction textInputAction = TextInputAction.done,
- TextCapitalization textCapitalization = TextCapitalization.none,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextAlign textAlign = TextAlign.left,
- TextAlignVertical? textAlignVertical,
- TextDirection? textDirection,
- bool readOnly = false,
- bool? showCursor,
- bool autoFocus = false,
- String obscuringCharacter = '•',
- bool autocorrect = true,
- SmartDashesType? smartDashesType,
- SmartQuotesType? smartQuotesType,
- bool enableSuggestions = true,
- int maxLines = 1,
- int minLines = 1,
- bool expands = false,
- int? maxLength,
- MaxLengthEnforcement? maxLengthEnforcement,
- ValueChanged<
String> ? onChanged, - ValueCallback<
TextEditingController> ? onEditingComplete, - ValueChanged<
String> ? onSubmitted, - List<
TextInputFormatter> ? inputFormatters, - bool? enabled = true,
- double cursorWidth = 2.0,
- double? cursorHeight,
- Radius cursorRadius = const Radius.circular(2.0),
- BoxHeightStyle selectionHeightStyle = ui.BoxHeightStyle.tight,
- BoxWidthStyle selectionWidthStyle = ui.BoxWidthStyle.tight,
- Brightness? keyboardAppearance,
- EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- bool? enableInteractiveSelection,
- TextSelectionControls? selectionControls,
- GestureTapCallback? onTap,
- ScrollController? scrollController,
- ScrollPhysics? scrollPhysics,
- Iterable<
String> ? autofillHints = const [], - Clip clipBehavior = Clip.hardEdge,
- String? restorationId,
- bool scribbleEnabled = true,
- bool enableIMEPersonalizedLearning = true,
- TextInputLimitFormatter textInputType = TextInputLimitFormatter.text,
- EditableTextContextMenuBuilder? contextMenuBuilder,
- TextMagnifierConfiguration? magnifierConfiguration,
- TapRegionCallback? onTapOutside,
- 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});