EWTextField constructor
const
EWTextField({
- bool obscure = false,
- AutovalidateMode autoValidateMode = AutovalidateMode.onUserInteraction,
- int? errorMaxLines = 1,
- TextEditingController? controller,
- TextInputType? keyboardType,
- TextStyle? textStyle,
- String? validator()?,
- String? hintText,
- String? labelText,
- Widget? prefixIcon,
- String? errorText,
- Color? cursorColor,
- Widget? suffixIcon,
- dynamic onChanged()?,
- GestureTapCallback? onTap,
- bool readOnly = false,
- FocusNode? focusNode,
- bool autocorrect = false,
- Iterable<
String> ? autofillHints, - bool autofocus = false,
- InputCounterWidgetBuilder? buildCounter,
- bool canRequestFocus = true,
- Clip clipBehavior = Clip.hardEdge,
- ContentInsertionConfiguration? contentInsertionConfiguration,
- double? cursorHeight,
- bool cursorOpacityAnimates = false,
- Radius? cursorRadius,
- double? cursorWidth,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- bool enabled = true,
- bool enableIMEPersonalizedLearning = true,
- bool enableSuggestions = true,
- bool enableInteractiveSelection = false,
- String? initialValue,
- Brightness? keyboardAppearance,
- bool expands = false,
- List<
TextInputFormatter> ? inputFormatters, - TextMagnifierConfiguration? magnifierConfiguration,
- int? maxLength,
- MaxLengthEnforcement? maxLengthEnforcement,
- int? maxLines = 1,
- int? minLines,
- MouseCursor? mouseCursor,
- AppPrivateCommandCallback? onAppPrivateCommand,
- VoidCallback? onEditingComplete,
- ValueChanged<
String> ? onFieldSubmitted, - dynamic onSaved()?,
- TapRegionCallback? onTapOutside,
- String? restorationId,
- bool scribbleEnabled = true,
- ScrollController? scrollController,
- ScrollPhysics? scrollPhysics,
- StrutStyle? strutStyle,
- TextAlign textAlign = TextAlign.start,
- TextAlignVertical? textAlignVertical,
- TextDirection? textDirection,
- TextCapitalization textCapitalization = TextCapitalization.none,
- String? helperText,
- TextStyle? labelStyle,
- EdgeInsetsGeometry? contentPadding,
- Key? key,
Implementation
const EWTextField({
this.obscure = false,
this.autoValidateMode = AutovalidateMode.onUserInteraction,
this.errorMaxLines = 1,
this.controller,
this.keyboardType,
this.textStyle,
this.validator,
this.hintText,
this.labelText,
this.prefixIcon,
this.errorText,
this.cursorColor,
this.suffixIcon,
this.onChanged,
this.onTap,
this.readOnly = false,
this.focusNode,
this.autocorrect = false,
this.autofillHints,
this.autofocus = false,
this.buildCounter,
this.canRequestFocus = true,
this.clipBehavior = Clip.hardEdge,
this.contentInsertionConfiguration,
this.cursorHeight,
this.cursorOpacityAnimates = false,
this.cursorRadius,
this.cursorWidth,
this.dragStartBehavior = DragStartBehavior.start,
this.enabled = true,
this.enableIMEPersonalizedLearning = true,
this.enableSuggestions = true,
this.enableInteractiveSelection = false,
this.initialValue,
this.keyboardAppearance,
this.expands = false,
this.inputFormatters,
this.magnifierConfiguration,
this.maxLength,
this.maxLengthEnforcement,
this.maxLines = 1,
this.minLines,
this.mouseCursor,
this.onAppPrivateCommand,
this.onEditingComplete,
this.onFieldSubmitted,
this.onSaved,
this.onTapOutside,
this.restorationId,
this.scribbleEnabled = true,
this.scrollController,
this.scrollPhysics,
this.strutStyle,
this.textAlign = TextAlign.start,
this.textAlignVertical,
this.textDirection,
this.textCapitalization = TextCapitalization.none,
this.helperText,
this.labelStyle,
this.contentPadding,
super.key,
});