FTextFormField.email constructor

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

Creates a FTextFormField configured for emails.

Implementation

const FTextFormField.email({
  this.control = const .managed(),
  this.style,
  this.builder = Input.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 = Input.defaultContextMenuBuilder,
  this.canRequestFocus = true,
  this.undoController,
  this.spellCheckConfiguration,
  this.prefixBuilder,
  this.suffixBuilder,
  this.clearable = Input.defaultClearable,
  this.clearIconBuilder = Input.defaultClearIconBuilder,
  this.onSaved,
  this.onReset,
  this.validator,
  this.autovalidateMode = .disabled,
  this.forceErrorText,
  this.errorBuilder = _errorBuilder,
  super.key,
});