EditText<T extends EditTextController> constructor
const
EditText<T extends EditTextController> ({
- Key? key,
- T? controller,
- OnViewActivator? onActivator,
- OnViewChangeListener? onChange,
- OnViewErrorListener? onError,
- OnViewHoverListener? onHover,
- OnViewValidListener? onValid,
- OnViewValidatorListener? onValidator,
- ViewClickEffect? clickEffect,
- OnViewClickListener? onClick,
- OnViewClickListener? onDoubleClick,
- OnViewClickListener? onLongClick,
- OnViewToggleListener? onToggleClick,
- OnViewNotifyListener<
T> ? onClickHandler, - OnViewNotifyListener<
T> ? onDoubleClickHandler, - OnViewNotifyListener<
T> ? onLongClickHandler, - bool? absorbMode,
- bool? activated,
- Color? background,
- ValueState<
Color> ? backgroundState, - BlendMode? backgroundBlendMode,
- Gradient? backgroundGradient,
- ValueState<
Gradient> ? backgroundGradientState, - DecorationImage? backgroundImage,
- ValueState<
DecorationImage> ? backgroundImageState, - Clip? clipBehavior,
- double? dimensionRatio,
- double? elevation,
- bool? enabled,
- bool? expandable,
- Color? foreground,
- BlendMode? foregroundBlendMode,
- Gradient? foregroundGradient,
- DecorationImage? foregroundImage,
- int? flex,
- Alignment? gravity,
- double? height,
- ValueState<
double> ? heightState, - double? heightMax,
- double? heightMin,
- Color hoverColor = Colors.transparent,
- Axis? orientation,
- ViewPosition? position,
- ViewPositionType? positionType,
- Color pressedColor = Colors.transparent,
- Color rippleColor = Colors.transparent,
- bool? scrollable,
- ScrollController? scrollController,
- ViewScrollingType? scrollingType,
- ViewShape? shape,
- Matrix4? transform,
- Alignment? transformGravity,
- bool? visibility,
- double? width,
- ValueState<
double> ? widthState, - double? widthMax,
- double? widthMin,
- int? animation,
- Curve? animationType,
- ImageFilter? backdropFilter,
- BlendMode? backdropMode,
- Color? borderColor,
- ValueState<
Color> ? borderColorState, - double? borderSize,
- ValueState<
double> ? borderSizeState, - double? borderHorizontal,
- ValueState<
double> ? borderHorizontalState, - double? borderVertical,
- ValueState<
double> ? borderVerticalState, - double? borderTop,
- ValueState<
double> ? borderTopState, - double? borderBottom,
- ValueState<
double> ? borderBottomState, - double? borderStart,
- ValueState<
double> ? borderStartState, - double? borderEnd,
- ValueState<
double> ? borderEndState, - double? borderStrokeAlign,
- double? borderRadius,
- ValueState<
double> ? borderRadiusState, - double? borderRadiusBL,
- ValueState<
double> ? borderRadiusBLState, - double? borderRadiusBR,
- ValueState<
double> ? borderRadiusBRState, - double? borderRadiusTL,
- ValueState<
double> ? borderRadiusTLState, - double? borderRadiusTR,
- ValueState<
double> ? borderRadiusTRState, - bool indicatorVisible = false,
- double? margin,
- double? marginHorizontal,
- double? marginVertical,
- double? marginTop,
- double? marginBottom,
- double? marginStart,
- double? marginEnd,
- EdgeInsets? marginCustom,
- double? opacity,
- ValueState<
double> ? opacityState, - bool opacityAlwaysIncludeSemantics = false,
- double? padding,
- double? paddingHorizontal,
- double? paddingVertical,
- double? paddingTop,
- double? paddingBottom,
- double? paddingStart,
- double? paddingEnd,
- EdgeInsets? paddingCustom,
- double? shadow,
- double? shadowBlurRadius,
- BlurStyle? shadowBlurStyle,
- Color? shadowColor,
- ViewShadowType? shadowType,
- double? shadowSpreadRadius,
- double? shadowHorizontal,
- double? shadowVertical,
- double? shadowStart,
- double? shadowEnd,
- double? shadowTop,
- double? shadowBottom,
- int maxCharacters = 0,
- int? maxLines,
- double? letterSpacing,
- double lineSpacingExtra = 0,
- Locale? locale,
- double? wordSpacing,
- String? textFontFamily,
- FontStyle? textFontStyle,
- FontWeight? textFontWeight,
- TextDirection? textDirection,
- Color? selectionColor,
- StrutStyle? strutStyle,
- String? text,
- TextAlign? textAlign,
- bool textAllCaps = false,
- Color? textColor,
- TextHeightBehavior? textHeightBehavior,
- TextOverflow? textOverflow,
- double? textSize,
- TextStyle? textStyle,
- TextWidthBasis textWidthBasis = TextWidthBasis.parent,
- bool autoDisposeMode = true,
- String characters = "",
- String hint = "",
- Color? hintColor,
- int? minCharacters,
- Color? primary,
- Color? counterTextColor,
- ValueState<
Color> ? counterTextColorState, - TextStyle? counterTextStyle,
- ValueState<
TextStyle> ? counterTextStyleState, - FloatingVisibility counterVisibility = FloatingVisibility.hide,
- dynamic drawableEnd,
- ValueState? drawableEndState,
- EditTextDrawableBuilder<
T> ? drawableEndBuilder, - double drawableEndSize = 24,
- ValueState<
double> ? drawableEndSizeState, - double? drawableEndPadding,
- ValueState<
double> ? drawableEndPaddingState, - Color? drawableEndTint,
- ValueState<
Color> ? drawableEndTintState, - bool drawableEndVisible = true,
- bool drawableEndAsEye = false,
- dynamic drawableStart,
- ValueState? drawableStartState,
- EditTextDrawableBuilder<
T> ? drawableStartBuilder, - double drawableStartSize = 24,
- ValueState<
double> ? drawableStartSizeState, - double? drawableStartPadding,
- ValueState<
double> ? drawableStartPaddingState, - Color? drawableStartTint,
- ValueState<
Color> ? drawableStartTintState, - bool drawableStartVisible = true,
- Color? errorTextColor = const Color(0xFFFF7769),
- ValueState<
Color> ? errorTextColorState, - TextStyle? errorTextStyle,
- ValueState<
TextStyle> ? errorTextStyleState, - FloatingVisibility errorVisibility = FloatingVisibility.auto,
- Alignment? floatingAlignment,
- String? floatingText,
- TextStyle? floatingTextStyle,
- ValueState<
TextStyle> ? floatingTextStyleState, - EdgeInsets floatingTextSpace = EdgeInsets.zero,
- FloatingVisibility floatingVisibility = FloatingVisibility.hide,
- String helperText = "",
- Color? helperTextColor,
- ValueState<
Color> ? helperTextColorState, - TextStyle? helperTextStyle,
- ValueState<
TextStyle> ? helperTextStyleState, - Widget? indicator,
- double indicatorSize = 24,
- Color? indicatorStrokeColor,
- ValueState<
Color> ? indicatorStrokeColorState, - double indicatorStroke = 2,
- Color? indicatorStrokeBackground,
- ValueState<
Color> ? indicatorStrokeBackgroundState, - bool autocorrect = true,
- List<
String> autofillHints = const [], - bool autoFocus = false,
- Clip clipBehaviorText = Clip.hardEdge,
- Color? cursorColor,
- double? cursorHeight,
- bool cursorOpacityAnimates = false,
- Radius? cursorRadius,
- double cursorWidth = 2,
- ContentInsertionConfiguration? contentInsertionConfiguration,
- EditTextContextMenuBuilder? contextMenuBuilder = _defaultContextMenuBuilder,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- bool enableIMEPersonalizedLearning = true,
- bool? enableInteractiveSelection,
- bool enableSuggestions = true,
- bool expands = false,
- String ignorableCharacters = "",
- TextInputAction? inputAction,
- List<
TextInputFormatter> ? inputFormatters, - TextInputType? inputType,
- Brightness keyboardAppearance = Brightness.light,
- TextMagnifierConfiguration magnifierConfiguration = TextMagnifierConfiguration.disabled,
- bool maxCharactersAsLimit = true,
- int? minLines,
- MouseCursor? mouseCursor,
- bool? obscureText,
- String obscuringCharacter = '•',
- bool readOnly = false,
- String? restorationId,
- bool scribbleEnabled = true,
- ScrollController? scrollControllerText,
- EdgeInsets scrollPaddingText = const EdgeInsets.all(20),
- ScrollPhysics? scrollPhysicsText,
- Color? secondaryColor,
- TextSelectionControls? selectionControls,
- BoxHeightStyle selectionHeightStyle = BoxHeightStyle.tight,
- BoxWidthStyle selectionWidthStyle = BoxWidthStyle.tight,
- bool? showCursor,
- SmartDashesType? smartDashesType,
- SmartQuotesType? smartQuotesType,
- SpellCheckConfiguration? spellCheckConfiguration,
- TextCapitalization textCapitalization = TextCapitalization.none,
- UndoHistoryController? undoController,
- EditTextPrivateCommandListener? onAppPrivateCommand,
- EditTextVoidListener? onEditingComplete,
- EditTextSubmitListener? onSubmitted,
- EditTextTapOutsideListener? onTapOutside,
- Color? underlineColor,
- ValueState<
Color> ? underlineColorState, - double? underlineHeight,
- ValueState<
double> ? underlineHeightState,
Implementation
const EditText({
/// ROOT PROPERTIES
super.key,
super.controller,
/// CALLBACK PROPERTIES
super.onActivator,
super.onChange,
super.onError,
super.onHover,
super.onValid,
super.onValidator,
/// CLICK PROPERTIES
super.clickEffect,
super.onClick,
super.onDoubleClick,
super.onLongClick,
super.onToggleClick,
super.onClickHandler,
super.onDoubleClickHandler,
super.onLongClickHandler,
///BASE PROPERTIES
super.absorbMode,
super.activated,
super.background,
super.backgroundState,
super.backgroundBlendMode,
super.backgroundGradient,
super.backgroundGradientState,
super.backgroundImage,
super.backgroundImageState,
super.clipBehavior,
super.dimensionRatio,
super.elevation,
super.enabled,
super.expandable,
super.foreground,
super.foregroundBlendMode,
super.foregroundGradient,
super.foregroundImage,
super.flex,
super.gravity,
super.height,
super.heightState,
super.heightMax,
super.heightMin,
super.hoverColor,
super.orientation,
super.position,
super.positionType,
super.pressedColor,
super.rippleColor,
super.scrollable,
super.scrollController,
super.scrollingType,
super.shape,
super.transform,
super.transformGravity,
super.visibility,
super.width,
super.widthState,
super.widthMax,
super.widthMin,
/// ANIMATION PROPERTIES
super.animation,
super.animationType,
/// BACKDROP PROPERTIES
super.backdropFilter,
super.backdropMode,
/// BORDER PROPERTIES
super.borderColor,
super.borderColorState,
super.borderSize,
super.borderSizeState,
super.borderHorizontal,
super.borderHorizontalState,
super.borderVertical,
super.borderVerticalState,
super.borderTop,
super.borderTopState,
super.borderBottom,
super.borderBottomState,
super.borderStart,
super.borderStartState,
super.borderEnd,
super.borderEndState,
super.borderStrokeAlign,
/// BORDER RADIUS PROPERTIES
super.borderRadius,
super.borderRadiusState,
super.borderRadiusBL,
super.borderRadiusBLState,
super.borderRadiusBR,
super.borderRadiusBRState,
super.borderRadiusTL,
super.borderRadiusTLState,
super.borderRadiusTR,
super.borderRadiusTRState,
/// INDICATOR PROPERTIES
super.indicatorVisible,
/// MARGIN PROPERTIES
super.margin,
super.marginHorizontal,
super.marginVertical,
super.marginTop,
super.marginBottom,
super.marginStart,
super.marginEnd,
super.marginCustom,
/// OPACITY PROPERTIES
super.opacity,
super.opacityState,
super.opacityAlwaysIncludeSemantics,
/// PADDING PROPERTIES
super.padding,
super.paddingHorizontal,
super.paddingVertical,
super.paddingTop,
super.paddingBottom,
super.paddingStart,
super.paddingEnd,
super.paddingCustom,
/// SHADOW PROPERTIES
super.shadow,
super.shadowBlurRadius,
super.shadowBlurStyle,
super.shadowColor,
super.shadowType,
super.shadowSpreadRadius,
super.shadowHorizontal,
super.shadowVertical,
super.shadowStart,
super.shadowEnd,
super.shadowTop,
super.shadowBottom,
/// SUPER TEXT PROPERTIES
super.maxCharacters,
super.maxLines,
super.letterSpacing,
super.lineSpacingExtra,
super.locale,
super.wordSpacing,
super.textFontFamily,
super.textFontStyle,
super.textFontWeight,
super.textDirection,
super.selectionColor,
super.strutStyle,
super.text,
super.textAlign,
super.textAllCaps,
super.textColor,
super.textHeightBehavior,
super.textOverflow,
super.textSize,
super.textStyle,
super.textWidthBasis,
/// BASE PROPERTIES
this.autoDisposeMode = true,
this.characters = "",
this.hint = "",
this.hintColor,
this.minCharacters,
this.primary,
/// COUNTER PROPERTIES
this.counterTextColor,
this.counterTextColorState,
this.counterTextStyle,
this.counterTextStyleState,
this.counterVisibility = FloatingVisibility.hide,
/// DRAWABLE END PROPERTIES
this.drawableEnd,
this.drawableEndState,
this.drawableEndBuilder,
this.drawableEndSize = 24,
this.drawableEndSizeState,
this.drawableEndPadding,
this.drawableEndPaddingState,
this.drawableEndTint,
this.drawableEndTintState,
this.drawableEndVisible = true,
this.drawableEndAsEye = false,
/// DRAWABLE START PROPERTIES
this.drawableStart,
this.drawableStartState,
this.drawableStartBuilder,
this.drawableStartSize = 24,
this.drawableStartSizeState,
this.drawableStartPadding,
this.drawableStartPaddingState,
this.drawableStartTint,
this.drawableStartTintState,
this.drawableStartVisible = true,
/// ERROR TEXT PROPERTIES
this.errorTextColor = const Color(0xFFFF7769),
this.errorTextColorState,
this.errorTextStyle,
this.errorTextStyleState,
this.errorVisibility = FloatingVisibility.auto,
/// FLOATING TEXT PROPERTIES
this.floatingAlignment,
this.floatingText,
this.floatingTextStyle,
this.floatingTextStyleState,
this.floatingTextSpace = EdgeInsets.zero,
this.floatingVisibility = FloatingVisibility.hide,
/// HELPER TEXT PROPERTIES
this.helperText = "",
this.helperTextColor,
this.helperTextColorState,
this.helperTextStyle,
this.helperTextStyleState,
/// INDICATOR PROPERTIES
this.indicator,
this.indicatorSize = 24,
this.indicatorStrokeColor,
this.indicatorStrokeColorState,
this.indicatorStroke = 2,
this.indicatorStrokeBackground,
this.indicatorStrokeBackgroundState,
/// TEXT FIELD PROPERTIES
this.autocorrect = true,
this.autofillHints = const [],
this.autoFocus = false,
this.clipBehaviorText = Clip.hardEdge,
this.cursorColor,
this.cursorHeight,
this.cursorOpacityAnimates = false,
this.cursorRadius,
this.cursorWidth = 2,
this.contentInsertionConfiguration,
this.contextMenuBuilder = _defaultContextMenuBuilder,
this.dragStartBehavior = DragStartBehavior.start,
this.enableIMEPersonalizedLearning = true,
this.enableInteractiveSelection,
this.enableSuggestions = true,
this.expands = false,
this.ignorableCharacters = "",
this.inputAction,
this.inputFormatters,
this.inputType,
this.keyboardAppearance = Brightness.light,
this.magnifierConfiguration = TextMagnifierConfiguration.disabled,
this.maxCharactersAsLimit = true,
this.minLines,
this.mouseCursor,
this.obscureText,
this.obscuringCharacter = '•',
this.readOnly = false,
this.restorationId,
this.scribbleEnabled = true,
this.scrollControllerText,
this.scrollPaddingText = const EdgeInsets.all(20),
this.scrollPhysicsText,
this.secondaryColor,
this.selectionControls,
this.selectionHeightStyle = BoxHeightStyle.tight,
this.selectionWidthStyle = BoxWidthStyle.tight,
this.showCursor,
this.smartDashesType,
this.smartQuotesType,
this.spellCheckConfiguration,
this.textCapitalization = TextCapitalization.none,
this.undoController,
// LISTENERS
this.onAppPrivateCommand,
this.onEditingComplete,
this.onSubmitted,
this.onTapOutside,
/// UNDERLINE PROPERTIES
this.underlineColor,
this.underlineColorState,
this.underlineHeight,
this.underlineHeightState,
});