FTextFormField constructor
const
FTextFormField({
- FTextFieldControl control = const .managed(),
- FTextFieldStyle style(
- FTextFieldStyle style
- Widget builder(
- BuildContext context,
- FTextFieldStyle style,
- Set<
WidgetState> states, - Widget field,
- Widget? label,
- String? hint,
- Widget? description,
- TextMagnifierConfiguration? magnifierConfiguration,
- Object groupId = EditableText,
- FocusNode? focusNode,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- TextCapitalization textCapitalization = .none,
- TextAlign textAlign = .start,
- TextAlignVertical? textAlignVertical,
- TextDirection? textDirection,
- bool autofocus = false,
- WidgetStatesController? statesController,
- String obscuringCharacter = '•',
- bool obscureText = false,
- bool autocorrect = true,
- 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, - String? restorationId,
- bool stylusHandwritingEnabled = true,
- bool enableIMEPersonalizedLearning = true,
- ContentInsertionConfiguration? contentInsertionConfiguration,
- EditableTextContextMenuBuilder? contextMenuBuilder = Input.defaultContextMenuBuilder,
- bool canRequestFocus = true,
- UndoHistoryController? undoController,
- SpellCheckConfiguration? spellCheckConfiguration,
- Widget prefixBuilder(
- BuildContext context,
- FTextFieldStyle style,
- Set<
WidgetState> states
- Widget suffixBuilder(
- BuildContext context,
- FTextFieldStyle style,
- Set<
WidgetState> states
- bool clearable() = Input.defaultClearable,
- FFieldClearIconBuilder clearIconBuilder = Input.defaultClearIconBuilder,
- FormFieldSetter<
String> ? onSaved, - VoidCallback? onReset,
- FormFieldValidator<
String> ? validator, - AutovalidateMode autovalidateMode = .disabled,
- String? forceErrorText,
- Widget errorBuilder(
- BuildContext context,
- String message
- Key? key,
Creates a FTextFormField.
Implementation
const FTextFormField({
this.control = const .managed(),
this.style,
this.builder = Input.defaultBuilder,
this.label,
this.hint,
this.description,
this.magnifierConfiguration,
this.groupId = EditableText,
this.focusNode,
this.keyboardType,
this.textInputAction,
this.textCapitalization = .none,
this.textAlign = .start,
this.textAlignVertical,
this.textDirection,
this.autofocus = false,
this.statesController,
this.obscuringCharacter = '•',
this.obscureText = false,
this.autocorrect = true,
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,
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,
});