FxTextField constructor
FxTextField({
- TextEditingController? controller,
- FocusNode? focusNode,
- InputDecoration? decoration,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- TextCapitalization? textCapitalization,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextAlign? textAlign,
- TextAlignVertical? textAlignVertical,
- TextDirection? textDirection,
- bool? autofocus,
- String? obscuringCharacter,
- bool? obscureText,
- bool? autocorrect,
- SmartDashesType? smartDashesType,
- SmartQuotesType? smartQuotesType,
- bool? enableSuggestions,
- Brightness? keyboardAppearance,
- int? maxLines,
- int? minLines,
- bool? expands,
- bool? readOnly,
- Widget contextMenuBuilder()?,
- bool? showCursor,
- int? maxLength,
- MaxLengthEnforcement? maxLengthEnforcement,
- ValueChanged<
String> ? onChanged, - VoidCallback? onEditingComplete,
- ValueChanged<
String> ? onSubmitted, - AppPrivateCommandCallback? onAppPrivateCommand,
- List<
TextInputFormatter> ? inputFormatters, - bool? enabled,
- double? cursorWidth,
- double? cursorHeight,
- Radius? cursorRadius,
- Color? cursorColor,
- BoxHeightStyle? selectionHeightStyle,
- BoxWidthStyle? selectionWidthStyle,
- EdgeInsets? scrollPadding,
- bool? enableInteractiveSelection,
- TextSelectionControls? selectionControls,
- DragStartBehavior? dragStartBehavior,
- GestureTapCallback? onTap,
- MouseCursor? mouseCursor,
- InputCounterWidgetBuilder? buildCounter,
- ScrollPhysics? scrollPhysics,
- ScrollController? scrollController,
- Iterable<
String> ? autofillHints, - String? restorationId,
- Widget? icon,
- String? labelText,
- TextStyle? labelStyle,
- String? helperText,
- TextStyle? helperStyle,
- int? helperMaxLines,
- String? hintText,
- TextStyle? hintStyle,
- TextDirection? hintTextDirection,
- int? hintMaxLines,
- String? errorText,
- TextStyle? errorStyle,
- int? errorMaxLines,
- FloatingLabelBehavior? floatingLabelBehavior,
- bool? isCollapsed,
- bool? isDense,
- EdgeInsetsGeometry? contentPadding,
- Widget? prefixIcon,
- BoxConstraints? prefixIconConstraints,
- Widget? prefix,
- String? prefixText,
- TextStyle? prefixStyle,
- Widget? suffixIcon,
- Widget? suffix,
- String? suffixText,
- TextStyle? suffixStyle,
- BoxConstraints? suffixIconConstraints,
- Widget? counter,
- String? counterText,
- TextStyle? counterStyle,
- bool? filled,
- Color? fillColor,
- Color? focusColor,
- Color? hoverColor,
- InputBorder? errorBorder,
- InputBorder? focusedBorder,
- InputBorder? focusedErrorBorder,
- InputBorder? disabledBorder,
- InputBorder? enabledBorder,
- InputBorder? border,
- bool? textEnabled,
- String? semanticCounterText,
- bool? alignLabelWithHint,
- FxTextFieldType textFieldType = FxTextFieldType.name,
- FxTextFieldStyle textFieldStyle = FxTextFieldStyle.outlined,
- bool? autoIcon,
- Color? enabledBorderColor,
- Color? focusedBorderColor,
- double? enabledBorderRadius,
- double? focusedBorderRadius,
- Color? labelTextColor,
- Color? prefixIconColor,
- Color? suffixIconColor,
- bool? autoFocusedBorder,
- bool enableHint = true,
- Color? textColor,
- bool? allowSuffixIcon,
Implementation
FxTextField(
{this.controller,
this.focusNode,
this.decoration,
this.keyboardType,
this.textInputAction,
this.textCapitalization,
this.style,
this.strutStyle,
this.textAlign,
this.textAlignVertical,
this.textDirection,
this.autofocus,
this.obscuringCharacter,
this.obscureText,
this.autocorrect,
this.smartDashesType,
this.smartQuotesType,
this.enableSuggestions,
this.keyboardAppearance,
this.maxLines,
this.minLines,
this.expands,
this.readOnly,
this.contextMenuBuilder,
this.showCursor,
this.maxLength,
this.maxLengthEnforcement,
this.onChanged,
this.onEditingComplete,
this.onSubmitted,
this.onAppPrivateCommand,
this.inputFormatters,
this.enabled,
this.cursorWidth,
this.cursorHeight,
this.cursorRadius,
this.cursorColor,
this.selectionHeightStyle,
this.selectionWidthStyle,
this.scrollPadding,
this.enableInteractiveSelection,
this.selectionControls,
this.dragStartBehavior,
this.onTap,
this.mouseCursor,
this.buildCounter,
this.scrollPhysics,
this.scrollController,
this.autofillHints,
this.restorationId,
//input decoration properties
this.icon,
this.labelText,
this.labelStyle,
this.helperText,
this.helperStyle,
this.helperMaxLines,
this.hintText,
this.hintStyle,
this.hintTextDirection,
this.hintMaxLines,
this.errorText,
this.errorStyle,
this.errorMaxLines,
this.floatingLabelBehavior,
this.isCollapsed,
this.isDense,
this.contentPadding,
this.prefixIcon,
this.prefixIconConstraints,
this.prefix,
this.prefixText,
this.prefixStyle,
this.suffixIcon,
this.suffix,
this.suffixText,
this.suffixStyle,
this.suffixIconConstraints,
this.counter,
this.counterText,
this.counterStyle,
this.filled,
this.fillColor,
this.focusColor,
this.hoverColor,
this.errorBorder,
this.focusedBorder,
this.focusedErrorBorder,
this.disabledBorder,
this.enabledBorder,
this.border,
this.textEnabled,
this.semanticCounterText,
this.alignLabelWithHint,
this.textFieldType = FxTextFieldType.name,
this.textFieldStyle = FxTextFieldStyle.outlined,
this.autoIcon,
this.enabledBorderColor,
this.focusedBorderColor,
this.enabledBorderRadius,
this.focusedBorderRadius,
this.labelTextColor,
this.prefixIconColor,
this.suffixIconColor,
this.autoFocusedBorder,
this.enableHint=true, this.textColor,this.allowSuffixIcon});