GetTextField constructor
const
GetTextField({
- String? initialText,
- String? controlledText,
- TextEditingController? controller,
- AutovalidateMode? autovalidateMode,
- TextInputType? keyboardType,
- List<
TextInputFormatter> ? inputFormatters, - TextInputAction? textInputAction,
- FocusNode? focusNode,
- VoidCallback? onTap,
- OnString? onSubmitted,
- OnString? onSaved,
- OnString? onChanged,
- OnStringCallback<
String?> ? validator, - bool autoControlled = true,
- bool? readOnly,
- bool tapOnly = true,
- bool? validateLength,
- bool validateEmpty = true,
- bool? showCounter,
- bool? dense,
- bool? filled,
- bool? obscureText,
- bool? enableSuggestions,
- int? maxLength,
- int? minLines,
- int maxLines = 1,
- EdgeInsets? margin,
- EdgeInsets? padding,
- Color? background,
- TextCapitalization textCapitalization = TextCapitalization.none,
- TextStyle? style,
- TextAlign textAlign = TextAlign.start,
- TextAlignVertical? textAlignVertical,
- bool autofocus = false,
- bool expands = false,
- ToolbarOptions? toolbarOptions,
- bool? showCursor,
- String obscuringCharacter = "•",
- SmartDashesType? smartDashesType,
- SmartQuotesType? smartQuotesType,
- MaxLengthEnforcement? maxLengthEnforcement,
- VoidCallback? onEditingComplete,
- bool enabled = true,
- double cursorWidth = 2.0,
- double? cursorHeight,
- Radius? cursorRadius,
- Color? cursorColor,
- Brightness? keyboardBrightness,
- EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
- bool enableInteractiveSelection = true,
- TextSelectionControls? selectionControls,
- InputCounterWidgetBuilder? buildCounter,
- ScrollPhysics? scrollPhysics,
- Iterable<
String> ? autofillHints, - String? label,
- String? hint,
- String? error,
- String? helper,
- Widget? hintIcon,
- Widget? prefix,
- Widget? suffix,
- Widget? icon,
- TextStyle? labelStyle,
- TextStyle? helperStyle,
- int? helperMaxLines,
- TextStyle? hintStyle,
- int? hintMaxLines,
- TextStyle? errorStyle,
- int? errorMaxLines,
- FloatingLabelBehavior floatingLabelBehavior = FloatingLabelBehavior.auto,
- bool collapsed = false,
- EdgeInsetsGeometry? contentPadding,
- Widget? prefixIcon,
- BoxConstraints? prefixIconConstraints,
- String? prefixText,
- TextStyle? prefixStyle,
- Widget? suffixIcon,
- String? suffixText,
- TextStyle? suffixStyle,
- BoxConstraints? suffixIconConstraints,
- Widget? counter,
- String? counterText,
- TextStyle? counterStyle,
- Color? fillColor,
- Color? focusColor,
- Color? hoverColor,
- InputBorder? errorBorder,
- InputBorder? focusedBorder,
- InputBorder? focusedErrorBorder,
- InputBorder? disabledBorder,
- InputBorder? enabledBorder,
- InputBorder? border,
- String? semanticCounterText,
- bool? alignLabelWithHint,
- Key? key,
Implementation
const GetTextField({
this.initialText,
this.controlledText,
this.controller,
this.autovalidateMode,
this.keyboardType,
this.inputFormatters,
this.textInputAction,
this.focusNode,
this.onTap,
this.onSubmitted,
this.onSaved,
this.onChanged,
this.validator,
this.autoControlled = true,
this.readOnly,
this.tapOnly = true,
this.validateLength,
this.validateEmpty = true,
this.showCounter,
this.dense,
this.filled,
this.obscureText,
this.enableSuggestions,
this.maxLength,
this.minLines,
this.maxLines = 1,
this.margin,
this.padding,
this.background,
this.textCapitalization = TextCapitalization.none,
this.style,
this.textAlign = TextAlign.start,
this.textAlignVertical,
this.autofocus = false,
this.expands = false,
this.toolbarOptions,
this.showCursor,
this.obscuringCharacter = "•",
this.smartDashesType,
this.smartQuotesType,
this.maxLengthEnforcement,
this.onEditingComplete,
this.enabled = true,
this.cursorWidth = 2.0,
this.cursorHeight,
this.cursorRadius,
this.cursorColor,
this.keyboardBrightness,
this.scrollPadding = const EdgeInsets.all(20.0),
this.enableInteractiveSelection = true,
this.selectionControls,
this.buildCounter,
this.scrollPhysics,
this.autofillHints,
this.label,
this.hint,
this.error,
this.helper,
this.hintIcon,
this.prefix,
this.suffix,
this.icon,
this.labelStyle,
this.helperStyle,
this.helperMaxLines,
this.hintStyle,
this.hintMaxLines,
this.errorStyle,
this.errorMaxLines,
this.floatingLabelBehavior = FloatingLabelBehavior.auto,
this.collapsed = false,
this.contentPadding,
this.prefixIcon,
this.prefixIconConstraints,
this.prefixText,
this.prefixStyle,
this.suffixIcon,
this.suffixText,
this.suffixStyle,
this.suffixIconConstraints,
this.counter,
this.counterText,
this.counterStyle,
this.fillColor,
this.focusColor,
this.hoverColor,
this.errorBorder,
this.focusedBorder,
this.focusedErrorBorder,
this.disabledBorder,
this.enabledBorder,
this.border,
this.semanticCounterText,
this.alignLabelWithHint,
Key? key,
}) : _key = key,
super(key: null);