AdeptTextField constructor
const
AdeptTextField({
- Key? key,
- AdeptTextEditingController? controller,
- FocusNode? focusNode,
- InputDecoration? decoration,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- TextCapitalization? textCapitalization,
- TextStyle? style,
- TextAlign? textAlign,
- TextDirection? textDirection,
- bool? autofocus,
- bool? obscureText,
- bool? autocorrect,
- int? maxLines,
- int? maxLength,
- MaxLengthEnforcement? maxLengthEnforcement,
- ValueChanged<
String> ? onChanged, - bool? listenOnControllerChanged,
- VoidCallback? onEditingComplete,
- ValueChanged<
String> ? onSubmitted, - List<
TextInputFormatter> ? inputFormatters, - bool? enabled,
- double? cursorWidth,
- Radius? cursorRadius,
- Color? cursorColor,
- Brightness? keyboardAppearance,
- EdgeInsets? scrollPadding,
- bool? enableInteractiveSelection,
- TextSelectionControls? selectionControls,
- GestureTapCallback? onTap,
- TapRegionCallback? onTapOutside,
- StrutStyle? strutStyle,
- TextAlignVertical? textAlignVertical,
- bool? readOnly,
- bool? showCursor,
- String? obscuringCharacter,
- SmartDashesType? smartDashesType,
- SmartQuotesType? smartQuotesType,
- bool? enableSuggestions,
- int? minLines,
- bool? expands,
- AppPrivateCommandCallback? onAppPrivateCommand,
- double? cursorHeight,
- BoxHeightStyle? selectionHeightStyle,
- BoxWidthStyle? selectionWidthStyle,
- DragStartBehavior? dragStartBehavior,
- MouseCursor? mouseCursor,
- InputCounterWidgetBuilder? buildCounter,
- ScrollController? scrollController,
- ScrollPhysics? scrollPhysics,
- Iterable<
String> ? autofillHints, - Clip clipBehavior = Clip.hardEdge,
- String? restorationId,
- bool scribbleEnabled = true,
- bool enableIMEPersonalizedLearning = true,
- EditableTextContextMenuBuilder? contextMenuBuilder = _defaultContextMenuBuilder,
- SpellCheckConfiguration? spellCheckConfiguration,
- TextMagnifierConfiguration? magnifierConfiguration,
- CustomButton? customButton,
- CustomButtonDefaultAction? customButtonDefaultAction,
- VoidCallback? customButtonAction,
- Color? customButtonColor,
- Widget? customButtonView,
- IconData? customButtonIcon,
- double? customButtonIconSize,
- double? customButtonIconPadding,
- bool autoValidate = false,
- String? onValidate()?,
Implementation
const AdeptTextField({
this.key,
this.controller,
this.focusNode,
InputDecoration? decoration,
this.keyboardType,
this.textInputAction,
TextCapitalization? textCapitalization,
this.style,
TextAlign? textAlign,
this.textDirection,
bool? autofocus,
bool? obscureText,
bool? autocorrect,
int? maxLines,
this.maxLength,
this.maxLengthEnforcement,
this.onChanged,
bool? listenOnControllerChanged,
this.onEditingComplete,
this.onSubmitted,
this.inputFormatters,
this.enabled,
double? cursorWidth,
this.cursorRadius,
this.cursorColor,
this.keyboardAppearance,
EdgeInsets? scrollPadding,
bool? enableInteractiveSelection,
this.selectionControls,
this.onTap,
this.onTapOutside,
this.strutStyle,
this.textAlignVertical,
bool? readOnly,
this.showCursor,
String? obscuringCharacter,
this.smartDashesType,
this.smartQuotesType,
bool? enableSuggestions,
this.minLines,
bool? expands,
this.onAppPrivateCommand,
this.cursorHeight,
ui.BoxHeightStyle? selectionHeightStyle,
ui.BoxWidthStyle? selectionWidthStyle,
DragStartBehavior? dragStartBehavior,
this.mouseCursor,
this.buildCounter,
this.scrollController,
this.scrollPhysics,
this.autofillHints,
this.clipBehavior = Clip.hardEdge,
this.restorationId,
this.scribbleEnabled = true,
this.enableIMEPersonalizedLearning = true,
this.contextMenuBuilder = _defaultContextMenuBuilder,
this.spellCheckConfiguration,
this.magnifierConfiguration,
CustomButton? customButton,
CustomButtonDefaultAction? customButtonDefaultAction,
this.customButtonAction,
this.customButtonColor,
this.customButtonView,
this.customButtonIcon,
double? customButtonIconSize,
double? customButtonIconPadding,
this.autoValidate = false,
this.onValidate,
}) : decoration = decoration ?? const InputDecoration(),
textCapitalization = textCapitalization ?? TextCapitalization.none,
textAlign = textAlign ?? TextAlign.start,
autofocus = autofocus ?? false,
obscureText = obscureText ?? false,
autocorrect = autocorrect ?? true,
maxLines = maxLines ?? 1,
listenOnControllerChanged = listenOnControllerChanged ?? true,
cursorWidth = cursorWidth ?? 2.0,
scrollPadding = scrollPadding ?? const EdgeInsets.all(20.0),
enableInteractiveSelection = enableInteractiveSelection ?? true,
readOnly = readOnly ?? false,
obscuringCharacter = obscuringCharacter ?? '•',
enableSuggestions = enableSuggestions ?? true,
expands = expands ?? false,
selectionHeightStyle = selectionHeightStyle ?? ui.BoxHeightStyle.tight,
selectionWidthStyle = selectionWidthStyle ?? ui.BoxWidthStyle.tight,
dragStartBehavior = dragStartBehavior ?? DragStartBehavior.start,
customButton = customButton ?? CustomButton.NONE,
customButtonDefaultAction =
customButtonDefaultAction ?? CustomButtonDefaultAction.NONE,
customButtonIconSize = customButtonIconSize ?? 24,
customButtonIconPadding = customButtonIconPadding ?? 8;