EditText<T extends EditTextController> constructor

const EditText<T extends EditTextController>({
  1. Key? key,
  2. T? controller,
  3. OnViewActivator? onActivator,
  4. OnViewChangeListener? onChange,
  5. OnViewErrorListener? onError,
  6. OnViewHoverListener? onHover,
  7. OnViewValidListener? onValid,
  8. OnViewValidatorListener? onValidator,
  9. ViewClickEffect? clickEffect,
  10. OnViewClickListener? onClick,
  11. OnViewClickListener? onDoubleClick,
  12. OnViewClickListener? onLongClick,
  13. OnViewToggleListener? onToggleClick,
  14. OnViewNotifyListener<T>? onClickHandler,
  15. OnViewNotifyListener<T>? onDoubleClickHandler,
  16. OnViewNotifyListener<T>? onLongClickHandler,
  17. bool? absorbMode,
  18. bool? activated,
  19. Color? background,
  20. ValueState<Color>? backgroundState,
  21. BlendMode? backgroundBlendMode,
  22. Gradient? backgroundGradient,
  23. ValueState<Gradient>? backgroundGradientState,
  24. DecorationImage? backgroundImage,
  25. ValueState<DecorationImage>? backgroundImageState,
  26. Clip? clipBehavior,
  27. double? dimensionRatio,
  28. double? elevation,
  29. bool? enabled,
  30. bool? expandable,
  31. Color? foreground,
  32. BlendMode? foregroundBlendMode,
  33. Gradient? foregroundGradient,
  34. DecorationImage? foregroundImage,
  35. int? flex,
  36. Alignment? gravity,
  37. double? height,
  38. ValueState<double>? heightState,
  39. double? heightMax,
  40. double? heightMin,
  41. Color hoverColor = Colors.transparent,
  42. Axis? orientation,
  43. ViewPosition? position,
  44. ViewPositionType? positionType,
  45. Color pressedColor = Colors.transparent,
  46. Color rippleColor = Colors.transparent,
  47. bool? scrollable,
  48. ScrollController? scrollController,
  49. ViewScrollingType? scrollingType,
  50. ViewShape? shape,
  51. Matrix4? transform,
  52. Alignment? transformGravity,
  53. bool? visibility,
  54. double? width,
  55. ValueState<double>? widthState,
  56. double? widthMax,
  57. double? widthMin,
  58. int? animation,
  59. Curve? animationType,
  60. ImageFilter? backdropFilter,
  61. BlendMode? backdropMode,
  62. Color? borderColor,
  63. ValueState<Color>? borderColorState,
  64. double? borderSize,
  65. ValueState<double>? borderSizeState,
  66. double? borderHorizontal,
  67. ValueState<double>? borderHorizontalState,
  68. double? borderVertical,
  69. ValueState<double>? borderVerticalState,
  70. double? borderTop,
  71. ValueState<double>? borderTopState,
  72. double? borderBottom,
  73. ValueState<double>? borderBottomState,
  74. double? borderStart,
  75. ValueState<double>? borderStartState,
  76. double? borderEnd,
  77. ValueState<double>? borderEndState,
  78. double? borderStrokeAlign,
  79. double? borderRadius,
  80. ValueState<double>? borderRadiusState,
  81. double? borderRadiusBL,
  82. ValueState<double>? borderRadiusBLState,
  83. double? borderRadiusBR,
  84. ValueState<double>? borderRadiusBRState,
  85. double? borderRadiusTL,
  86. ValueState<double>? borderRadiusTLState,
  87. double? borderRadiusTR,
  88. ValueState<double>? borderRadiusTRState,
  89. bool indicatorVisible = false,
  90. double? margin,
  91. double? marginHorizontal,
  92. double? marginVertical,
  93. double? marginTop,
  94. double? marginBottom,
  95. double? marginStart,
  96. double? marginEnd,
  97. EdgeInsets? marginCustom,
  98. double? opacity,
  99. ValueState<double>? opacityState,
  100. bool opacityAlwaysIncludeSemantics = false,
  101. double? padding,
  102. double? paddingHorizontal,
  103. double? paddingVertical,
  104. double? paddingTop,
  105. double? paddingBottom,
  106. double? paddingStart,
  107. double? paddingEnd,
  108. EdgeInsets? paddingCustom,
  109. double? shadow,
  110. double? shadowBlurRadius,
  111. BlurStyle? shadowBlurStyle,
  112. Color? shadowColor,
  113. ViewShadowType? shadowType,
  114. double? shadowSpreadRadius,
  115. double? shadowHorizontal,
  116. double? shadowVertical,
  117. double? shadowStart,
  118. double? shadowEnd,
  119. double? shadowTop,
  120. double? shadowBottom,
  121. int maxCharacters = 0,
  122. int? maxLines,
  123. double? letterSpacing,
  124. double lineSpacingExtra = 0,
  125. Locale? locale,
  126. double? wordSpacing,
  127. String? textFontFamily,
  128. FontStyle? textFontStyle,
  129. FontWeight? textFontWeight,
  130. TextDirection? textDirection,
  131. Color? selectionColor,
  132. StrutStyle? strutStyle,
  133. String? text,
  134. TextAlign? textAlign,
  135. bool textAllCaps = false,
  136. Color? textColor,
  137. TextHeightBehavior? textHeightBehavior,
  138. TextOverflow? textOverflow,
  139. double? textSize,
  140. TextStyle? textStyle,
  141. TextWidthBasis textWidthBasis = TextWidthBasis.parent,
  142. bool autoDisposeMode = true,
  143. String characters = "",
  144. String hint = "",
  145. Color? hintColor,
  146. int? minCharacters,
  147. Color? primary,
  148. Color? counterTextColor,
  149. ValueState<Color>? counterTextColorState,
  150. TextStyle? counterTextStyle,
  151. ValueState<TextStyle>? counterTextStyleState,
  152. FloatingVisibility counterVisibility = FloatingVisibility.hide,
  153. dynamic drawableEnd,
  154. ValueState? drawableEndState,
  155. EditTextDrawableBuilder<T>? drawableEndBuilder,
  156. double drawableEndSize = 24,
  157. ValueState<double>? drawableEndSizeState,
  158. double? drawableEndPadding,
  159. ValueState<double>? drawableEndPaddingState,
  160. Color? drawableEndTint,
  161. ValueState<Color>? drawableEndTintState,
  162. bool drawableEndVisible = true,
  163. bool drawableEndAsEye = false,
  164. dynamic drawableStart,
  165. ValueState? drawableStartState,
  166. EditTextDrawableBuilder<T>? drawableStartBuilder,
  167. double drawableStartSize = 24,
  168. ValueState<double>? drawableStartSizeState,
  169. double? drawableStartPadding,
  170. ValueState<double>? drawableStartPaddingState,
  171. Color? drawableStartTint,
  172. ValueState<Color>? drawableStartTintState,
  173. bool drawableStartVisible = true,
  174. Color? errorTextColor = const Color(0xFFFF7769),
  175. ValueState<Color>? errorTextColorState,
  176. TextStyle? errorTextStyle,
  177. ValueState<TextStyle>? errorTextStyleState,
  178. FloatingVisibility errorVisibility = FloatingVisibility.auto,
  179. Alignment? floatingAlignment,
  180. String? floatingText,
  181. TextStyle? floatingTextStyle,
  182. ValueState<TextStyle>? floatingTextStyleState,
  183. EdgeInsets floatingTextSpace = EdgeInsets.zero,
  184. FloatingVisibility floatingVisibility = FloatingVisibility.hide,
  185. String helperText = "",
  186. Color? helperTextColor,
  187. ValueState<Color>? helperTextColorState,
  188. TextStyle? helperTextStyle,
  189. ValueState<TextStyle>? helperTextStyleState,
  190. Widget? indicator,
  191. double indicatorSize = 24,
  192. Color? indicatorStrokeColor,
  193. ValueState<Color>? indicatorStrokeColorState,
  194. double indicatorStroke = 2,
  195. Color? indicatorStrokeBackground,
  196. ValueState<Color>? indicatorStrokeBackgroundState,
  197. bool autocorrect = true,
  198. List<String> autofillHints = const [],
  199. bool autoFocus = false,
  200. Clip clipBehaviorText = Clip.hardEdge,
  201. Color? cursorColor,
  202. double? cursorHeight,
  203. bool cursorOpacityAnimates = false,
  204. Radius? cursorRadius,
  205. double cursorWidth = 2,
  206. ContentInsertionConfiguration? contentInsertionConfiguration,
  207. EditTextContextMenuBuilder? contextMenuBuilder = _defaultContextMenuBuilder,
  208. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  209. bool enableIMEPersonalizedLearning = true,
  210. bool? enableInteractiveSelection,
  211. bool enableSuggestions = true,
  212. bool expands = false,
  213. String ignorableCharacters = "",
  214. TextInputAction? inputAction,
  215. List<TextInputFormatter>? inputFormatters,
  216. TextInputType? inputType,
  217. Brightness keyboardAppearance = Brightness.light,
  218. TextMagnifierConfiguration magnifierConfiguration = TextMagnifierConfiguration.disabled,
  219. bool maxCharactersAsLimit = true,
  220. int? minLines,
  221. MouseCursor? mouseCursor,
  222. bool? obscureText,
  223. String obscuringCharacter = '•',
  224. bool readOnly = false,
  225. String? restorationId,
  226. bool scribbleEnabled = true,
  227. ScrollController? scrollControllerText,
  228. EdgeInsets scrollPaddingText = const EdgeInsets.all(20),
  229. ScrollPhysics? scrollPhysicsText,
  230. Color? secondaryColor,
  231. TextSelectionControls? selectionControls,
  232. BoxHeightStyle selectionHeightStyle = BoxHeightStyle.tight,
  233. BoxWidthStyle selectionWidthStyle = BoxWidthStyle.tight,
  234. bool? showCursor,
  235. SmartDashesType? smartDashesType,
  236. SmartQuotesType? smartQuotesType,
  237. SpellCheckConfiguration? spellCheckConfiguration,
  238. TextCapitalization textCapitalization = TextCapitalization.none,
  239. UndoHistoryController? undoController,
  240. EditTextPrivateCommandListener? onAppPrivateCommand,
  241. EditTextVoidListener? onEditingComplete,
  242. EditTextSubmitListener? onSubmitted,
  243. EditTextTapOutsideListener? onTapOutside,
  244. Color? underlineColor,
  245. ValueState<Color>? underlineColorState,
  246. double? underlineHeight,
  247. 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,
});