FluentTextField constructor

const FluentTextField({
  1. Key? key,
  2. TextEditingController? controller,
  3. FocusNode? focusNode,
  4. TextInputType? keyboardType,
  5. TextInputAction? textInputAction,
  6. TextStyle? style,
  7. StrutStyle? strutStyle,
  8. TextDirection? textDirection,
  9. TextAlignVertical? textAlignVertical,
  10. bool? showCursor,
  11. SmartDashesType? smartDashesType,
  12. SmartQuotesType? smartQuotesType,
  13. int? minLines,
  14. int? maxLength,
  15. void onChanged(
    1. String
    )?,
  16. void onTap()?,
  17. void onTapOutside(
    1. PointerDownEvent
    )?,
  18. void onEditingComplete()?,
  19. List<TextInputFormatter>? inputFormatters,
  20. double? cursorHeight,
  21. Color? cursorColor,
  22. Brightness? keyboardAppearance,
  23. bool? enableInteractiveSelection,
  24. TextSelectionControls? selectionControls,
  25. ScrollPhysics? scrollPhysics,
  26. Iterable<String>? autofillHints,
  27. ScrollController? scrollController,
  28. String? restorationId,
  29. MaxLengthEnforcement? maxLengthEnforcement,
  30. InputDecoration? decoration,
  31. Color? highlightColor,
  32. Color? unfocusedColor,
  33. Widget contextMenuBuilder(
    1. BuildContext,
    2. EditableTextState
    )?,
  34. TextMagnifierConfiguration? magnifierConfiguration,
  35. SpellCheckConfiguration? spellCheckConfiguration,
  36. TextCapitalization textCapitalization = TextCapitalization.none,
  37. TextAlign textAlign = TextAlign.start,
  38. bool autofocus = false,
  39. bool readOnly = false,
  40. String obscuringCharacter = '•',
  41. bool obscureText = false,
  42. bool autocorrect = true,
  43. bool enableSuggestions = true,
  44. int? maxLines = 1,
  45. bool expands = false,
  46. EdgeInsetsGeometry padding = kTextBoxPadding,
  47. bool enabled = true,
  48. double cursorWidth = 2.0,
  49. Radius cursorRadius = const Radius.circular(2.0),
  50. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  51. Clip clipBehavior = Clip.antiAlias,
  52. OverlayVisibilityMode prefixMode = OverlayVisibilityMode.always,
  53. OverlayVisibilityMode suffixMode = OverlayVisibilityMode.always,
  54. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  55. BoxHeightStyle selectionHeightStyle = BoxHeightStyle.tight,
  56. BoxWidthStyle selectionWidthStyle = BoxWidthStyle.tight,
  57. bool enableIMEPersonalizedLearning = true,
  58. bool stylusHandwritingEnabled = true,
  59. WidgetStateProperty<BoxDecoration>? boxDecoration,
  60. void onSubmitted(
    1. String
    )?,
})

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,
});