ZeroTextField constructor
const
ZeroTextField({
- Key? key,
- String? hintText,
- String? helperText,
- String? labelText,
- String? errorText,
- TextStyle? labelStyle,
- TextStyle? errorStyle,
- TextStyle? helperStyle,
- InputDecorationType? inputDecorationType,
- ZeroTextfieldSize textfieldSize = ZeroTextfieldSize.small,
- Widget? prefixIcon,
- Widget? suffixIcon,
- Widget? prefix,
- Widget? suffix,
- InputDecoration? decoration,
- AutovalidateMode? autovalidateMode = AutovalidateMode.onUserInteraction,
- bool? enabled,
- dynamic onChanged()?,
- dynamic onEditingComplete()?,
- TextEditingController? controller,
- FocusNode? focusNode,
- TextInputType? keyboardType,
- String? validator()?,
- TextInputAction? textInputAction = TextInputAction.next,
- int? minLines,
- int? maxLines,
- TextAlignVertical? textAlignVertical,
- bool? autofocus = false,
- void onFieldSubmitted(
- String text
- void onSaved(
- String? text
- dynamic onTap()?,
- dynamic onTapOutside(
- PointerDownEvent event
- OnFocusChanged? onFocusChanged,
- bool autocorrect = false,
- Iterable<
String> ? autofillHints, - TextStyle? style,
- String? initialValue,
- bool expands = false,
- List<
TextInputFormatter> ? inputFormatters, - TextCapitalization textCapitalization = TextCapitalization.none,
- Brightness? keyboardAppearance,
- bool obscureText = false,
- bool readOnly = false,
- Color? cursorColor,
- double? cursorHeight,
- double cursorWidth = 2.0,
- Radius? cursorRadius,
- bool enableSuggestion = false,
- BuildCounter? buildCounter,
- ContextMenuBuilder? contextMenuBuilder,
- int? maxLength,
- MouseCursor? mouseCursor,
- MaxLengthEnforcement? maxLengthEnforcement,
- String obscuringCharacter = '•',
- ScrollController? scrollController,
- EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
- bool showCursor = true,
- ScrollPhysics? scrollPhysics,
- StrutStyle? strutStyle,
- TextAlign textAlign = TextAlign.start,
- TextDirection? textDirection,
- TextSelectionControls? selectionControls,
- bool enableIMEPersonalizedLearning = true,
- bool? enableInteractiveSelection,
Implementation
const ZeroTextField({
super.key,
this.hintText,
this.helperText,
this.labelText,
this.errorText,
this.labelStyle,
this.errorStyle,
this.helperStyle,
this.inputDecorationType,
this.textfieldSize = ZeroTextfieldSize.small,
this.prefixIcon,
this.suffixIcon,
this.prefix,
this.suffix,
this.decoration,
this.autovalidateMode = AutovalidateMode.onUserInteraction,
this.enabled,
this.onChanged,
this.onEditingComplete,
this.controller,
this.focusNode,
this.keyboardType,
this.validator,
this.textInputAction = TextInputAction.next,
this.minLines,
this.maxLines,
this.textAlignVertical,
this.autofocus = false,
this.onFieldSubmitted,
this.onSaved,
this.onTap,
this.onTapOutside,
this.onFocusChanged,
this.autocorrect = false,
this.autofillHints,
this.style,
this.initialValue,
this.expands = false,
this.inputFormatters,
this.textCapitalization = TextCapitalization.none,
this.keyboardAppearance,
this.obscureText = false,
this.readOnly = false,
this.cursorColor,
this.cursorHeight,
this.cursorWidth = 2.0,
this.cursorRadius,
this.enableSuggestion = false,
this.buildCounter,
this.contextMenuBuilder,
this.maxLength,
this.mouseCursor,
this.maxLengthEnforcement,
this.obscuringCharacter = '•',
this.scrollController,
this.scrollPadding = const EdgeInsets.all(20.0),
this.showCursor = true,
this.scrollPhysics,
this.strutStyle,
this.textAlign = TextAlign.start,
this.textDirection,
this.selectionControls,
this.enableIMEPersonalizedLearning = true,
this.enableInteractiveSelection,
});