FluentTextField constructor
const
FluentTextField({
- Key? key,
- TextEditingController? controller,
- FocusNode? focusNode,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextDirection? textDirection,
- TextAlignVertical? textAlignVertical,
- bool? showCursor,
- SmartDashesType? smartDashesType,
- SmartQuotesType? smartQuotesType,
- int? minLines,
- int? maxLength,
- void onChanged()?,
- void onTap()?,
- void onTapOutside()?,
- void onEditingComplete()?,
- List<
TextInputFormatter> ? inputFormatters, - double? cursorHeight,
- Color? cursorColor,
- Brightness? keyboardAppearance,
- bool? enableInteractiveSelection,
- TextSelectionControls? selectionControls,
- ScrollPhysics? scrollPhysics,
- Iterable<
String> ? autofillHints, - ScrollController? scrollController,
- String? restorationId,
- MaxLengthEnforcement? maxLengthEnforcement,
- InputDecoration? decoration,
- Color? highlightColor,
- Color? unfocusedColor,
- Widget contextMenuBuilder()?,
- TextMagnifierConfiguration? magnifierConfiguration,
- SpellCheckConfiguration? spellCheckConfiguration,
- TextCapitalization textCapitalization = TextCapitalization.none,
- TextAlign textAlign = TextAlign.start,
- bool autofocus = false,
- bool readOnly = false,
- String obscuringCharacter = '•',
- bool obscureText = false,
- bool autocorrect = true,
- bool enableSuggestions = true,
- int? maxLines = 1,
- bool expands = false,
- EdgeInsetsGeometry padding = kTextBoxPadding,
- bool enabled = true,
- double cursorWidth = 2.0,
- Radius cursorRadius = const Radius.circular(2.0),
- EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
- Clip clipBehavior = Clip.antiAlias,
- OverlayVisibilityMode prefixMode = OverlayVisibilityMode.always,
- OverlayVisibilityMode suffixMode = OverlayVisibilityMode.always,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- BoxHeightStyle selectionHeightStyle = BoxHeightStyle.tight,
- BoxWidthStyle selectionWidthStyle = BoxWidthStyle.tight,
- bool enableIMEPersonalizedLearning = true,
- bool stylusHandwritingEnabled = true,
- WidgetStateProperty<
BoxDecoration> ? boxDecoration, - void onSubmitted()?,
Implementation
const FluentTextField({
super.key,
this.controller,
this.focusNode,
this.keyboardType,
this.textInputAction,
this.style,
this.strutStyle,
this.textDirection,
this.textAlignVertical,
this.showCursor,
this.smartDashesType,
this.smartQuotesType,
this.minLines,
this.maxLength,
this.onChanged,
this.onTap,
this.onTapOutside,
this.onEditingComplete,
this.inputFormatters,
this.cursorHeight,
this.cursorColor,
this.keyboardAppearance,
this.enableInteractiveSelection,
this.selectionControls,
this.scrollPhysics,
this.autofillHints,
this.scrollController,
this.restorationId,
this.maxLengthEnforcement,
this.decoration,
this.highlightColor,
this.unfocusedColor,
this.contextMenuBuilder,
this.magnifierConfiguration,
this.spellCheckConfiguration,
this.textCapitalization = TextCapitalization.none,
this.textAlign = TextAlign.start,
this.autofocus = false,
this.readOnly = false,
this.obscuringCharacter = '•',
this.obscureText = false,
this.autocorrect = true,
this.enableSuggestions = true,
this.maxLines = 1,
this.expands = false,
this.padding = kTextBoxPadding,
this.enabled = true,
this.cursorWidth = 2.0,
this.cursorRadius = const Radius.circular(2.0),
this.scrollPadding = const EdgeInsets.all(20.0),
this.clipBehavior = Clip.antiAlias,
this.prefixMode = OverlayVisibilityMode.always,
this.suffixMode = OverlayVisibilityMode.always,
this.dragStartBehavior = DragStartBehavior.start,
this.selectionHeightStyle = BoxHeightStyle.tight,
this.selectionWidthStyle = BoxWidthStyle.tight,
this.enableIMEPersonalizedLearning = true,
this.stylusHandwritingEnabled = true,
this.boxDecoration,
this.onSubmitted,
});