FTextField.email constructor

const FTextField.email({
  1. FTextFieldStyle? style,
  2. Widget? label = const Text('Email'),
  3. String? hint,
  4. Widget? description,
  5. TextMagnifierConfiguration? magnifierConfiguration,
  6. TextEditingController? controller,
  7. FocusNode? focusNode,
  8. TextInputType? keyboardType = TextInputType.emailAddress,
  9. TextInputAction? textInputAction,
  10. TextCapitalization textCapitalization = TextCapitalization.none,
  11. TextAlign textAlign = TextAlign.start,
  12. TextAlignVertical? textAlignVertical,
  13. TextDirection? textDirection,
  14. bool autofocus = false,
  15. WidgetStatesController? statesController,
  16. bool obscureText = false,
  17. bool autocorrect = false,
  18. SmartDashesType? smartDashesType,
  19. SmartQuotesType? smartQuotesType,
  20. bool enableSuggestions = true,
  21. int? minLines,
  22. int? maxLines = 1,
  23. bool expands = false,
  24. bool readOnly = false,
  25. bool? showCursor,
  26. int? maxLength,
  27. MaxLengthEnforcement? maxLengthEnforcement,
  28. ValueChanged<String>? onChange,
  29. VoidCallback? onEditingComplete,
  30. ValueChanged<String>? onSubmit,
  31. AppPrivateCommandCallback? onAppPrivateCommand,
  32. List<TextInputFormatter>? inputFormatters,
  33. bool enabled = true,
  34. bool? ignorePointers,
  35. bool enableInteractSelection = true,
  36. TextSelectionControls? selectionControls,
  37. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  38. ScrollPhysics? scrollPhysics,
  39. ScrollController? scrollController,
  40. Iterable<String>? autofillHints = const [AutofillHints.email],
  41. String? restorationId,
  42. bool scribbleEnabled = true,
  43. bool enableIMEPersonalizedLearning = true,
  44. EditableTextContextMenuBuilder? contextMenuBuilder = _contextMenuBuilder,
  45. bool canRequestFocus = true,
  46. UndoHistoryController? undoController,
  47. SpellCheckConfiguration? spellCheckConfiguration,
  48. Widget? suffix,
  49. FormFieldSetter<String>? onSave,
  50. FormFieldValidator<String>? validator,
  51. String? initialValue,
  52. AutovalidateMode? autovalidateMode,
  53. Widget errorBuilder(
    1. BuildContext,
    2. String
    ) = _errorBuilder,
  54. Key? key,
})

Creates a FTextField configured for emails.

Implementation

const FTextField.email({
  this.style,
  this.label = const Text('Email'),
  this.hint,
  this.description,
  this.magnifierConfiguration,
  this.controller,
  this.focusNode,
  this.keyboardType = TextInputType.emailAddress,
  this.textInputAction,
  this.textCapitalization = TextCapitalization.none,
  this.textAlign = TextAlign.start,
  this.textAlignVertical,
  this.textDirection,
  this.autofocus = false,
  this.statesController,
  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.onEditingComplete,
  this.onSubmit,
  this.onAppPrivateCommand,
  this.inputFormatters,
  this.enabled = true,
  this.ignorePointers,
  this.enableInteractSelection = true,
  this.selectionControls,
  this.dragStartBehavior = DragStartBehavior.start,
  this.scrollPhysics,
  this.scrollController,
  this.autofillHints = const [AutofillHints.email],
  this.restorationId,
  this.scribbleEnabled = true,
  this.enableIMEPersonalizedLearning = true,
  this.contextMenuBuilder = _contextMenuBuilder,
  this.canRequestFocus = true,
  this.undoController,
  this.spellCheckConfiguration,
  this.suffix,
  this.onSave,
  this.validator,
  this.initialValue,
  this.autovalidateMode,
  this.errorBuilder = _errorBuilder,
  super.key,
});