FTextField.email constructor
const
FTextField.email({
- FTextFieldControl control = const .managed(),
- FTextFieldStyle style(
- FTextFieldStyle style
- FFieldBuilder<
FTextFieldStyle> builder = Input.defaultBuilder, - Widget? label = const LocalizedText.email(),
- String? hint,
- Widget? description,
- Widget? error,
- TextMagnifierConfiguration? magnifierConfiguration,
- Object groupId = EditableText,
- FocusNode? focusNode,
- TextInputType? keyboardType = .emailAddress,
- TextInputAction? textInputAction = .next,
- TextCapitalization textCapitalization = .none,
- TextAlign textAlign = .start,
- TextAlignVertical? textAlignVertical,
- TextDirection? textDirection,
- bool autofocus = false,
- WidgetStatesController? statesController,
- String obscuringCharacter = '•',
- bool obscureText = false,
- bool autocorrect = false,
- SmartDashesType? smartDashesType,
- SmartQuotesType? smartQuotesType,
- bool enableSuggestions = true,
- int? minLines,
- int? maxLines = 1,
- bool expands = false,
- bool readOnly = false,
- bool? showCursor,
- int? maxLength,
- MaxLengthEnforcement? maxLengthEnforcement,
- GestureTapCallback? onTap,
- TapRegionCallback? onTapOutside,
- bool onTapAlwaysCalled = false,
- VoidCallback? onEditingComplete,
- ValueChanged<
String> ? onSubmit, - AppPrivateCommandCallback? onAppPrivateCommand,
- List<
TextInputFormatter> ? inputFormatters, - bool enabled = true,
- bool? ignorePointers,
- bool enableInteractiveSelection = true,
- bool? selectAllOnFocus,
- TextSelectionControls? selectionControls,
- DragStartBehavior dragStartBehavior = .start,
- MouseCursor? mouseCursor,
- FTextFieldCounterBuilder? counterBuilder,
- ScrollPhysics? scrollPhysics,
- ScrollController? scrollController,
- Iterable<
String> ? autofillHints = const [AutofillHints.email], - String? restorationId,
- bool stylusHandwritingEnabled = true,
- bool enableIMEPersonalizedLearning = true,
- ContentInsertionConfiguration? contentInsertionConfiguration,
- EditableTextContextMenuBuilder? contextMenuBuilder = Input.defaultContextMenuBuilder,
- bool canRequestFocus = true,
- UndoHistoryController? undoController,
- SpellCheckConfiguration? spellCheckConfiguration,
- FFieldIconBuilder<
FTextFieldStyle> ? prefixBuilder, - FFieldIconBuilder<
FTextFieldStyle> ? suffixBuilder, - bool clearable() = Input.defaultClearable,
- FFieldClearIconBuilder clearIconBuilder = Input.defaultClearIconBuilder,
- Key? key,
Creates a FTextField configured for emails.
Implementation
const FTextField.email({
this.control = const .managed(),
this.style,
this.builder = Input.defaultBuilder,
this.label = const LocalizedText.email(),
this.hint,
this.description,
this.error,
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,
super.key,
});