FTextFormField.email constructor

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

Creates a FTextFormField configured for emails.

Implementation

const FTextFormField.email({
  this.control = const .managed(),
  this.size = .md,
  this.style = const .context(),
  this.builder = FTextField.defaultBuilder,
  this.label = const LocalizedText.email(),
  this.hint,
  this.description,
  this.magnifierConfiguration,
  this.groupId = EditableText,
  this.focusNode,
  this.keyboardType = .emailAddress,
  this.textInputAction = .next,
  this.textCapitalization = .none,
  this.textAlign = .start,
  this.textAlignVertical,
  this.textDirection,
  this.autofocus = false,
  this.statesController,
  this.obscuringCharacter = '•',
  this.obscureText = false,
  this.autocorrect = false,
  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 = const [AutofillHints.email],
  this.restorationId,
  this.stylusHandwritingEnabled = true,
  this.enableIMEPersonalizedLearning = true,
  this.contentInsertionConfiguration,
  this.contextMenuBuilder = FTextField.defaultContextMenuBuilder,
  this.canRequestFocus = true,
  this.undoController,
  this.spellCheckConfiguration,
  this.prefixBuilder,
  this.suffixBuilder,
  this.clearable = FTextField.defaultClearable,
  this.clearIconBuilder = FTextField.defaultClearIconBuilder,
  this.onSaved,
  this.onReset,
  this.validator,
  this.autovalidateMode = .disabled,
  this.forceErrorText,
  this.errorBuilder = FFormFieldProperties.defaultErrorBuilder,
  this.formFieldKey,
  super.key,
});