FTextFormField.email constructor

const FTextFormField.email({
  1. FTextFieldStyle style(
    1. FTextFieldStyle
    )?,
  2. Widget builder(
    1. BuildContext,
    2. FTextFieldStyle,
    3. Set<WidgetState>,
    4. Widget,
    ) = Defaults.builder,
  3. Widget? label = const Text('Email'),
  4. String? hint,
  5. Widget? description,
  6. TextMagnifierConfiguration? magnifierConfiguration,
  7. Object groupId = EditableText,
  8. TextEditingController? controller,
  9. FocusNode? focusNode,
  10. TextInputType? keyboardType = TextInputType.emailAddress,
  11. TextInputAction? textInputAction = TextInputAction.next,
  12. TextCapitalization textCapitalization = TextCapitalization.none,
  13. TextAlign 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. ValueChanged<String>? onChange,
  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 = 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 = Defaults.contextMenuBuilder,
  55. bool canRequestFocus = true,
  56. UndoHistoryController? undoController,
  57. SpellCheckConfiguration? spellCheckConfiguration,
  58. Widget prefixBuilder(
    1. BuildContext,
    2. FTextFieldStyle,
    3. Set<WidgetState>
    )?,
  59. Widget suffixBuilder(
    1. BuildContext,
    2. FTextFieldStyle,
    3. Set<WidgetState>
    )?,
  60. bool clearable(
    1. TextEditingValue
    ) = Defaults.clearable,
  61. FormFieldSetter<String>? onSaved,
  62. FormFieldValidator<String>? validator,
  63. String? initialText,
  64. AutovalidateMode autovalidateMode = AutovalidateMode.disabled,
  65. String? forceErrorText,
  66. Widget errorBuilder(
    1. BuildContext,
    2. String
    ) = _errorBuilder,
  67. Key? key,
})

Creates a FTextFormField configured for emails.

Implementation

const FTextFormField.email({
  this.style,
  this.builder = Defaults.builder,
  this.label = const Text('Email'),
  this.hint,
  this.description,
  this.magnifierConfiguration,
  this.groupId = EditableText,
  this.controller,
  this.focusNode,
  this.keyboardType = TextInputType.emailAddress,
  this.textInputAction = TextInputAction.next,
  this.textCapitalization = TextCapitalization.none,
  this.textAlign = 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.onChange,
  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 = 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 = Defaults.contextMenuBuilder,
  this.canRequestFocus = true,
  this.undoController,
  this.spellCheckConfiguration,
  this.prefixBuilder,
  this.suffixBuilder,
  this.clearable = Defaults.clearable,
  this.onSaved,
  this.validator,
  this.initialText,
  this.autovalidateMode = AutovalidateMode.disabled,
  this.forceErrorText,
  this.errorBuilder = _errorBuilder,
  super.key,
});