FluentTextFormField constructor

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

Implementation

const FluentTextFormField({
  super.key,
  this.controller,
  this.initialValue,
  this.focusNode,
  this.keyboardType,
  this.textInputAction = TextInputAction.next,
  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.onFieldSubmitted,
  this.onSaved,
  this.validator,
  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.mouseCursor,
  this.highlightColor,
  this.errorHighlightColor,
  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.autovalidateMode = AutovalidateMode.disabled,
  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,
});