FTextField constructor

const FTextField({
  1. FTextFieldControl control = const .managed(),
  2. FTextFieldSizeVariant size = .md,
  3. FTextFieldStyleDelta style = const .context(),
  4. FFieldBuilder<FTextFieldStyle> builder = defaultBuilder,
  5. Widget? label,
  6. String? hint,
  7. Widget? description,
  8. Widget? error,
  9. TextMagnifierConfiguration? magnifierConfiguration,
  10. Object groupId = EditableText,
  11. FocusNode? focusNode,
  12. TextInputType? keyboardType,
  13. TextInputAction? textInputAction,
  14. TextCapitalization textCapitalization = .none,
  15. TextAlign textAlign = .start,
  16. TextAlignVertical? textAlignVertical,
  17. TextDirection? textDirection,
  18. bool autofocus = false,
  19. WidgetStatesController? statesController,
  20. String obscuringCharacter = '•',
  21. bool obscureText = false,
  22. bool autocorrect = true,
  23. SmartDashesType? smartDashesType,
  24. SmartQuotesType? smartQuotesType,
  25. bool enableSuggestions = true,
  26. int? minLines,
  27. int? maxLines = 1,
  28. bool expands = false,
  29. bool readOnly = false,
  30. bool? showCursor,
  31. int? maxLength,
  32. MaxLengthEnforcement? maxLengthEnforcement,
  33. GestureTapCallback? onTap,
  34. TapRegionCallback? onTapOutside,
  35. bool onTapAlwaysCalled = false,
  36. VoidCallback? onEditingComplete,
  37. ValueChanged<String>? onSubmit,
  38. AppPrivateCommandCallback? onAppPrivateCommand,
  39. List<TextInputFormatter>? inputFormatters,
  40. bool enabled = true,
  41. bool? ignorePointers,
  42. bool enableInteractiveSelection = true,
  43. bool? selectAllOnFocus,
  44. TextSelectionControls? selectionControls,
  45. DragStartBehavior dragStartBehavior = .start,
  46. MouseCursor? mouseCursor,
  47. FTextFieldCounterBuilder? counterBuilder,
  48. ScrollPhysics? scrollPhysics,
  49. ScrollController? scrollController,
  50. Iterable<String>? autofillHints,
  51. String? restorationId,
  52. bool stylusHandwritingEnabled = true,
  53. bool enableIMEPersonalizedLearning = true,
  54. ContentInsertionConfiguration? contentInsertionConfiguration,
  55. EditableTextContextMenuBuilder? contextMenuBuilder = defaultContextMenuBuilder,
  56. bool canRequestFocus = true,
  57. UndoHistoryController? undoController,
  58. SpellCheckConfiguration? spellCheckConfiguration,
  59. FFieldIconBuilder<FTextFieldStyle>? prefixBuilder,
  60. FFieldIconBuilder<FTextFieldStyle>? suffixBuilder,
  61. bool clearable(
    1. TextEditingValue
    ) = defaultClearable,
  62. FFieldClearIconBuilder clearIconBuilder = defaultClearIconBuilder,
  63. Key? key,
})

Creates a FTextField.

Implementation

const FTextField({
  this.control = const .managed(),
  this.size = .md,
  this.style = const .context(),
  this.builder = defaultBuilder,
  this.label,
  this.hint,
  this.description,
  this.error,
  this.magnifierConfiguration,
  this.groupId = EditableText,
  this.focusNode,
  this.keyboardType,
  this.textInputAction,
  this.textCapitalization = .none,
  this.textAlign = .start,
  this.textAlignVertical,
  this.textDirection,
  this.autofocus = false,
  this.statesController,
  this.obscuringCharacter = '•',
  this.obscureText = false,
  this.autocorrect = true,
  this.smartDashesType,
  this.smartQuotesType,
  this.enableSuggestions = true,
  this.minLines,
  this.maxLines = 1,
  this.expands = false,
  this.readOnly = false,
  this.showCursor,
  this.maxLength,
  this.maxLengthEnforcement,
  this.onTap,
  this.onTapOutside,
  this.onTapAlwaysCalled = false,
  this.onEditingComplete,
  this.onSubmit,
  this.onAppPrivateCommand,
  this.inputFormatters,
  this.enabled = true,
  this.ignorePointers,
  this.enableInteractiveSelection = true,
  this.selectAllOnFocus,
  this.selectionControls,
  this.dragStartBehavior = .start,
  this.mouseCursor,
  this.counterBuilder,
  this.scrollPhysics,
  this.scrollController,
  this.autofillHints,
  this.restorationId,
  this.stylusHandwritingEnabled = true,
  this.enableIMEPersonalizedLearning = true,
  this.contentInsertionConfiguration,
  this.contextMenuBuilder = defaultContextMenuBuilder,
  this.canRequestFocus = true,
  this.undoController,
  this.spellCheckConfiguration,
  this.prefixBuilder,
  this.suffixBuilder,
  this.clearable = defaultClearable,
  this.clearIconBuilder = defaultClearIconBuilder,
  super.key,
});