pub struct TextFormField {
pub group_id: TypeId,
pub controller: Option<TextEditingControllerRef>,
pub on_changed: Option<ValueChanged<String>>,
/* private fields */
}Expand description
A FormField that contains a TextField.
This is a convenience widget that wraps a TextField widget in a FormField.
A Form ancestor is not required. The Form allows one to save, reset, or validate
multiple fields at once. To use without a Form, pass a GlobalKey to the constructor and
use GlobalKey::current_state to save or reset the form field.
When a controller is specified, its TextEditingController::text
defines the initial_value. If this FormField is part of
a scrolling container that lazily constructs its children, like a ListView or a
CustomScrollView, then a controller should be specified. The
controller’s lifetime should be managed by a stateful widget ancestor of the scrolling
container.
If a controller is not specified, initial_value
can be used to give the automatically generated controller an initial value.
For a documentation about the various parameters, see the TextField class and
TextField::new, the constructor.
Fields§
§group_id: TypeId{@macro flutter.widgets.editableText.groupId}
controller: Option<TextEditingControllerRef>Controls the text being edited.
If null, this widget will create its own TextEditingController and initialize its
TextEditingController::text with initial_value.
on_changed: Option<ValueChanged<String>>Called when the user initiates a change to the TextField’s value: when they have inserted or deleted text or reset the form.
Implementations§
Source§impl TextFormField
impl TextFormField
Sourcepub fn new() -> TextFormField
pub fn new() -> TextFormField
Sourcepub fn key(self, key: KeyRef) -> TextFormField
pub fn key(self, key: KeyRef) -> TextFormField
Dart TextFormField(key:).
Sourcepub fn group_id(self, group_id: TypeId) -> TextFormField
pub fn group_id(self, group_id: TypeId) -> TextFormField
Dart TextFormField(groupId:).
Sourcepub fn controller(self, controller: TextEditingControllerRef) -> TextFormField
pub fn controller(self, controller: TextEditingControllerRef) -> TextFormField
Dart TextFormField(controller:).
Sourcepub fn initial_value(self, initial_value: impl Into<String>) -> TextFormField
pub fn initial_value(self, initial_value: impl Into<String>) -> TextFormField
Dart TextFormField(initialValue:).
Sourcepub fn focus_node(self, focus_node: FocusNodeRef) -> TextFormField
pub fn focus_node(self, focus_node: FocusNodeRef) -> TextFormField
Dart TextFormField(focusNode:).
Sourcepub fn force_error_text(
self,
force_error_text: impl Into<String>,
) -> TextFormField
pub fn force_error_text( self, force_error_text: impl Into<String>, ) -> TextFormField
Dart TextFormField(forceErrorText:).
Sourcepub fn decoration(self, decoration: Option<InputDecoration>) -> TextFormField
pub fn decoration(self, decoration: Option<InputDecoration>) -> TextFormField
Dart TextFormField(decoration:).
Sourcepub fn keyboard_type(self, keyboard_type: TextInputType) -> TextFormField
pub fn keyboard_type(self, keyboard_type: TextInputType) -> TextFormField
Dart TextFormField(keyboardType:).
Sourcepub fn text_capitalization(
self,
text_capitalization: TextCapitalization,
) -> TextFormField
pub fn text_capitalization( self, text_capitalization: TextCapitalization, ) -> TextFormField
Dart TextFormField(textCapitalization:).
Sourcepub fn text_input_action(
self,
text_input_action: TextInputAction,
) -> TextFormField
pub fn text_input_action( self, text_input_action: TextInputAction, ) -> TextFormField
Dart TextFormField(textInputAction:).
Sourcepub fn style(self, style: impl Into<AnyTextStyle>) -> TextFormField
pub fn style(self, style: impl Into<AnyTextStyle>) -> TextFormField
Dart TextFormField(style:).
Sourcepub fn strut_style(self, strut_style: StrutStyle) -> TextFormField
pub fn strut_style(self, strut_style: StrutStyle) -> TextFormField
Dart TextFormField(strutStyle:).
Sourcepub fn text_direction(self, text_direction: TextDirection) -> TextFormField
pub fn text_direction(self, text_direction: TextDirection) -> TextFormField
Dart TextFormField(textDirection:).
Sourcepub fn text_align(self, text_align: TextAlign) -> TextFormField
pub fn text_align(self, text_align: TextAlign) -> TextFormField
Dart TextFormField(textAlign:).
Sourcepub fn text_align_vertical(
self,
text_align_vertical: TextAlignVertical,
) -> TextFormField
pub fn text_align_vertical( self, text_align_vertical: TextAlignVertical, ) -> TextFormField
Dart TextFormField(textAlignVertical:).
Sourcepub fn autofocus(self, autofocus: bool) -> TextFormField
pub fn autofocus(self, autofocus: bool) -> TextFormField
Dart TextFormField(autofocus:).
Sourcepub fn read_only(self, read_only: bool) -> TextFormField
pub fn read_only(self, read_only: bool) -> TextFormField
Dart TextFormField(readOnly:).
Sourcepub fn toolbar_options(self, toolbar_options: ToolbarOptions) -> TextFormField
👎Deprecated: Use context_menu_builder instead.
pub fn toolbar_options(self, toolbar_options: ToolbarOptions) -> TextFormField
Use context_menu_builder instead.
Dart TextFormField(toolbarOptions:).
Sourcepub fn show_cursor(self, show_cursor: bool) -> TextFormField
pub fn show_cursor(self, show_cursor: bool) -> TextFormField
Dart TextFormField(showCursor:).
Sourcepub fn obscuring_character(
self,
obscuring_character: impl Into<String>,
) -> TextFormField
pub fn obscuring_character( self, obscuring_character: impl Into<String>, ) -> TextFormField
Dart TextFormField(obscuringCharacter:).
Sourcepub fn obscure_text(self, obscure_text: bool) -> TextFormField
pub fn obscure_text(self, obscure_text: bool) -> TextFormField
Dart TextFormField(obscureText:).
Sourcepub fn autocorrect(self, autocorrect: bool) -> TextFormField
pub fn autocorrect(self, autocorrect: bool) -> TextFormField
Dart TextFormField(autocorrect:).
Sourcepub fn smart_dashes_type(
self,
smart_dashes_type: SmartDashesType,
) -> TextFormField
pub fn smart_dashes_type( self, smart_dashes_type: SmartDashesType, ) -> TextFormField
Dart TextFormField(smartDashesType:).
Sourcepub fn smart_quotes_type(
self,
smart_quotes_type: SmartQuotesType,
) -> TextFormField
pub fn smart_quotes_type( self, smart_quotes_type: SmartQuotesType, ) -> TextFormField
Dart TextFormField(smartQuotesType:).
Sourcepub fn enable_suggestions(self, enable_suggestions: bool) -> TextFormField
pub fn enable_suggestions(self, enable_suggestions: bool) -> TextFormField
Dart TextFormField(enableSuggestions:).
Sourcepub fn max_length_enforcement(
self,
max_length_enforcement: MaxLengthEnforcement,
) -> TextFormField
pub fn max_length_enforcement( self, max_length_enforcement: MaxLengthEnforcement, ) -> TextFormField
Dart TextFormField(maxLengthEnforcement:).
Sourcepub fn max_lines(self, max_lines: Option<i32>) -> TextFormField
pub fn max_lines(self, max_lines: Option<i32>) -> TextFormField
Dart TextFormField(maxLines:).
Sourcepub fn min_lines(self, min_lines: i32) -> TextFormField
pub fn min_lines(self, min_lines: i32) -> TextFormField
Dart TextFormField(minLines:).
Sourcepub fn expands(self, expands: bool) -> TextFormField
pub fn expands(self, expands: bool) -> TextFormField
Dart TextFormField(expands:).
Sourcepub fn max_length(self, max_length: i32) -> TextFormField
pub fn max_length(self, max_length: i32) -> TextFormField
Dart TextFormField(maxLength:).
Sourcepub fn on_changed(
self,
on_changed: impl Fn(&mut App, String) + 'static,
) -> TextFormField
pub fn on_changed( self, on_changed: impl Fn(&mut App, String) + 'static, ) -> TextFormField
Dart TextFormField(onChanged:).
Sourcepub fn on_tap(self, on_tap: GestureTapCallback) -> TextFormField
pub fn on_tap(self, on_tap: GestureTapCallback) -> TextFormField
Dart TextFormField(onTap:).
Sourcepub fn on_tap_always_called(self, on_tap_always_called: bool) -> TextFormField
pub fn on_tap_always_called(self, on_tap_always_called: bool) -> TextFormField
Dart TextFormField(onTapAlwaysCalled:).
Sourcepub fn on_tap_outside(
self,
on_tap_outside: impl Fn(&mut App, PointerDownEvent) + 'static,
) -> TextFormField
pub fn on_tap_outside( self, on_tap_outside: impl Fn(&mut App, PointerDownEvent) + 'static, ) -> TextFormField
Dart TextFormField(onTapOutside:).
Sourcepub fn on_tap_up_outside(
self,
on_tap_up_outside: impl Fn(&mut App, PointerUpEvent) + 'static,
) -> TextFormField
pub fn on_tap_up_outside( self, on_tap_up_outside: impl Fn(&mut App, PointerUpEvent) + 'static, ) -> TextFormField
Dart TextFormField(onTapUpOutside:).
Sourcepub fn on_editing_complete(
self,
on_editing_complete: impl Fn(&mut App) + 'static,
) -> TextFormField
pub fn on_editing_complete( self, on_editing_complete: impl Fn(&mut App) + 'static, ) -> TextFormField
Dart TextFormField(onEditingComplete:).
Sourcepub fn on_field_submitted(
self,
on_field_submitted: impl Fn(&mut App, String) + 'static,
) -> TextFormField
pub fn on_field_submitted( self, on_field_submitted: impl Fn(&mut App, String) + 'static, ) -> TextFormField
Dart TextFormField(onFieldSubmitted:).
Sourcepub fn on_saved(
self,
on_saved: impl Fn(&mut App, Option<String>) + 'static,
) -> TextFormField
pub fn on_saved( self, on_saved: impl Fn(&mut App, Option<String>) + 'static, ) -> TextFormField
Dart TextFormField(onSaved:).
Sourcepub fn validator(
self,
validator: impl Fn(&mut App, Option<&String>) -> Option<String> + 'static,
) -> TextFormField
pub fn validator( self, validator: impl Fn(&mut App, Option<&String>) -> Option<String> + 'static, ) -> TextFormField
Dart TextFormField(validator:).
Sourcepub fn error_builder(
self,
error_builder: impl Fn(&mut App, BuildContext, String) -> WidgetRef + 'static,
) -> TextFormField
pub fn error_builder( self, error_builder: impl Fn(&mut App, BuildContext, String) -> WidgetRef + 'static, ) -> TextFormField
Dart TextFormField(errorBuilder:).
Sourcepub fn input_formatters(
self,
input_formatters: Vec<TextInputFormatterRef>,
) -> TextFormField
pub fn input_formatters( self, input_formatters: Vec<TextInputFormatterRef>, ) -> TextFormField
Dart TextFormField(inputFormatters:).
Sourcepub fn enabled(self, enabled: bool) -> TextFormField
pub fn enabled(self, enabled: bool) -> TextFormField
Dart TextFormField(enabled:).
Sourcepub fn ignore_pointers(self, ignore_pointers: bool) -> TextFormField
pub fn ignore_pointers(self, ignore_pointers: bool) -> TextFormField
Dart TextFormField(ignorePointers:).
Sourcepub fn cursor_width(self, cursor_width: f64) -> TextFormField
pub fn cursor_width(self, cursor_width: f64) -> TextFormField
Dart TextFormField(cursorWidth:).
Sourcepub fn cursor_height(self, cursor_height: f64) -> TextFormField
pub fn cursor_height(self, cursor_height: f64) -> TextFormField
Dart TextFormField(cursorHeight:).
Sourcepub fn cursor_radius(self, cursor_radius: Radius) -> TextFormField
pub fn cursor_radius(self, cursor_radius: Radius) -> TextFormField
Dart TextFormField(cursorRadius:).
Sourcepub fn cursor_color(self, cursor_color: Color) -> TextFormField
pub fn cursor_color(self, cursor_color: Color) -> TextFormField
Dart TextFormField(cursorColor:).
Sourcepub fn cursor_error_color(self, cursor_error_color: Color) -> TextFormField
pub fn cursor_error_color(self, cursor_error_color: Color) -> TextFormField
Dart TextFormField(cursorErrorColor:).
Sourcepub fn keyboard_appearance(
self,
keyboard_appearance: Brightness,
) -> TextFormField
pub fn keyboard_appearance( self, keyboard_appearance: Brightness, ) -> TextFormField
Dart TextFormField(keyboardAppearance:).
Sourcepub fn scroll_padding(self, scroll_padding: EdgeInsets) -> TextFormField
pub fn scroll_padding(self, scroll_padding: EdgeInsets) -> TextFormField
Dart TextFormField(scrollPadding:).
Sourcepub fn enable_interactive_selection(
self,
enable_interactive_selection: bool,
) -> TextFormField
pub fn enable_interactive_selection( self, enable_interactive_selection: bool, ) -> TextFormField
Dart TextFormField(enableInteractiveSelection:).
Sourcepub fn select_all_on_focus(self, select_all_on_focus: bool) -> TextFormField
pub fn select_all_on_focus(self, select_all_on_focus: bool) -> TextFormField
Dart TextFormField(selectAllOnFocus:).
Sourcepub fn selection_controls(
self,
selection_controls: Rc<dyn TextSelectionControls>,
) -> TextFormField
pub fn selection_controls( self, selection_controls: Rc<dyn TextSelectionControls>, ) -> TextFormField
Dart TextFormField(selectionControls:).
Sourcepub fn build_counter(
self,
build_counter: impl Fn(&mut App, BuildContext, i32, Option<i32>, bool) -> Option<WidgetRef> + 'static,
) -> TextFormField
pub fn build_counter( self, build_counter: impl Fn(&mut App, BuildContext, i32, Option<i32>, bool) -> Option<WidgetRef> + 'static, ) -> TextFormField
Dart TextFormField(buildCounter:).
Sourcepub fn scroll_physics(self, scroll_physics: ScrollPhysicsRef) -> TextFormField
pub fn scroll_physics(self, scroll_physics: ScrollPhysicsRef) -> TextFormField
Dart TextFormField(scrollPhysics:).
Sourcepub fn autofill_hints(self, autofill_hints: Vec<String>) -> TextFormField
pub fn autofill_hints(self, autofill_hints: Vec<String>) -> TextFormField
Dart TextFormField(autofillHints:).
Sourcepub fn autovalidate_mode(
self,
autovalidate_mode: AutovalidateMode,
) -> TextFormField
pub fn autovalidate_mode( self, autovalidate_mode: AutovalidateMode, ) -> TextFormField
Dart TextFormField(autovalidateMode:).
Sourcepub fn scroll_controller(
self,
scroll_controller: ScrollControllerRef,
) -> TextFormField
pub fn scroll_controller( self, scroll_controller: ScrollControllerRef, ) -> TextFormField
Dart TextFormField(scrollController:).
Sourcepub fn restoration_id(self, restoration_id: impl Into<String>) -> TextFormField
pub fn restoration_id(self, restoration_id: impl Into<String>) -> TextFormField
Dart TextFormField(restorationId:).
Sourcepub fn enable_ime_personalized_learning(
self,
enable_ime_personalized_learning: bool,
) -> TextFormField
pub fn enable_ime_personalized_learning( self, enable_ime_personalized_learning: bool, ) -> TextFormField
Dart TextFormField(enableIMEPersonalizedLearning:).
Sourcepub fn enable_inline_prediction(
self,
enable_inline_prediction: bool,
) -> TextFormField
pub fn enable_inline_prediction( self, enable_inline_prediction: bool, ) -> TextFormField
Dart TextFormField(enableInlinePrediction:).
Sourcepub fn mouse_cursor(self, mouse_cursor: MouseCursorRef) -> TextFormField
pub fn mouse_cursor(self, mouse_cursor: MouseCursorRef) -> TextFormField
Dart TextFormField(mouseCursor:).
Dart TextFormField(contextMenuBuilder:).
Sourcepub fn spell_check_configuration(
self,
spell_check_configuration: SpellCheckConfiguration,
) -> TextFormField
pub fn spell_check_configuration( self, spell_check_configuration: SpellCheckConfiguration, ) -> TextFormField
Dart TextFormField(spellCheckConfiguration:).
Sourcepub fn magnifier_configuration(
self,
magnifier_configuration: TextMagnifierConfiguration,
) -> TextFormField
pub fn magnifier_configuration( self, magnifier_configuration: TextMagnifierConfiguration, ) -> TextFormField
Dart TextFormField(magnifierConfiguration:).
Sourcepub fn undo_controller(
self,
undo_controller: Ref<UndoHistoryController>,
) -> TextFormField
pub fn undo_controller( self, undo_controller: Ref<UndoHistoryController>, ) -> TextFormField
Dart TextFormField(undoController:).
Sourcepub fn on_app_private_command(
self,
on_app_private_command: impl Fn(&mut App, &str) + 'static,
) -> TextFormField
pub fn on_app_private_command( self, on_app_private_command: impl Fn(&mut App, &str) + 'static, ) -> TextFormField
Dart TextFormField(onAppPrivateCommand:).
Sourcepub fn cursor_opacity_animates(
self,
cursor_opacity_animates: bool,
) -> TextFormField
pub fn cursor_opacity_animates( self, cursor_opacity_animates: bool, ) -> TextFormField
Dart TextFormField(cursorOpacityAnimates:).
Sourcepub fn selection_height_style(
self,
selection_height_style: BoxHeightStyle,
) -> TextFormField
pub fn selection_height_style( self, selection_height_style: BoxHeightStyle, ) -> TextFormField
Dart TextFormField(selectionHeightStyle:).
Sourcepub fn selection_width_style(
self,
selection_width_style: BoxWidthStyle,
) -> TextFormField
pub fn selection_width_style( self, selection_width_style: BoxWidthStyle, ) -> TextFormField
Dart TextFormField(selectionWidthStyle:).
Sourcepub fn drag_start_behavior(
self,
drag_start_behavior: DragStartBehavior,
) -> TextFormField
pub fn drag_start_behavior( self, drag_start_behavior: DragStartBehavior, ) -> TextFormField
Dart TextFormField(dragStartBehavior:).
Sourcepub fn content_insertion_configuration(
self,
content_insertion_configuration: ContentInsertionConfiguration,
) -> TextFormField
pub fn content_insertion_configuration( self, content_insertion_configuration: ContentInsertionConfiguration, ) -> TextFormField
Dart TextFormField(contentInsertionConfiguration:).
Sourcepub fn states_controller(
self,
states_controller: Ref<MaterialStatesController>,
) -> TextFormField
pub fn states_controller( self, states_controller: Ref<MaterialStatesController>, ) -> TextFormField
Dart TextFormField(statesController:).
Sourcepub fn clip_behavior(self, clip_behavior: Clip) -> TextFormField
pub fn clip_behavior(self, clip_behavior: Clip) -> TextFormField
Dart TextFormField(clipBehavior:).
Sourcepub fn scribble_enabled(self, scribble_enabled: bool) -> TextFormField
👎Deprecated: Use stylus_handwriting_enabled instead.
pub fn scribble_enabled(self, scribble_enabled: bool) -> TextFormField
Use stylus_handwriting_enabled instead.
Dart TextFormField(scribbleEnabled:).
Sourcepub fn stylus_handwriting_enabled(
self,
stylus_handwriting_enabled: bool,
) -> TextFormField
pub fn stylus_handwriting_enabled( self, stylus_handwriting_enabled: bool, ) -> TextFormField
Dart TextFormField(stylusHandwritingEnabled:).
Sourcepub fn can_request_focus(self, can_request_focus: bool) -> TextFormField
pub fn can_request_focus(self, can_request_focus: bool) -> TextFormField
Dart TextFormField(canRequestFocus:).
Sourcepub fn hint_locales(self, hint_locales: Vec<Locale>) -> TextFormField
pub fn hint_locales(self, hint_locales: Vec<Locale>) -> TextFormField
Dart TextFormField(hintLocales:).
Trait Implementations§
Source§impl Debug for TextFormField
impl Debug for TextFormField
Source§impl Default for TextFormField
impl Default for TextFormField
Source§fn default() -> TextFormField
fn default() -> TextFormField
Source§impl FormFieldLeaf for TextFormField
impl FormFieldLeaf for TextFormField
Source§fn form_field_data(&self) -> &FormFieldData<Self::Value>
fn form_field_data(&self) -> &FormFieldData<Self::Value>
FormFieldData bag (form_field_accessors!).Source§impl StatefulWidget for TextFormField
impl StatefulWidget for TextFormField
Source§type State = TextFormFieldState
type State = TextFormFieldState
Source§fn create_state(&self) -> TextFormFieldState
fn create_state(&self) -> TextFormFieldState
Source§fn debug_fill_properties(
&self,
_app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_properties( &self, _app: &App, properties: &mut DiagnosticPropertiesBuilder, )
debugFillProperties: the properties a dump shows for this widget, in Dart’s
order. Dart’s Widget base only sets the dense tree style, which the framework does.Source§fn as_preferred_size_widget(
&self,
) -> Option<&(dyn PreferredSizeWidget + 'static)>
fn as_preferred_size_widget( &self, ) -> Option<&(dyn PreferredSizeWidget + 'static)>
Source§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
Widget::type_name. A stateful form another widget kind becomes (an animated or
status transition widget) names the widget it wraps.Auto Trait Implementations§
impl !RefUnwindSafe for TextFormField
impl !Send for TextFormField
impl !Sync for TextFormField
impl !UnwindSafe for TextFormField
impl Forget for TextFormField
impl Freeze for TextFormFieldwhere
*const RcInner<dyn Key> is !null: Freeze,
PhantomData<RcInner<dyn Key>>: Freeze,
*const RcInner<dyn Fn(&mut App, AnyFormFieldState<String>) -> Rc<dyn Widget>> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, AnyFormFieldState<String>) -> Rc<dyn Widget>>>: Freeze,
*const RcInner<dyn Fn(&mut App, Option<String>)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, Option<String>)>>: Freeze,
*const RcInner<dyn Fn(&mut App)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App)>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const RcInner<dyn Fn(&mut App, Option<&String>) -> Option<String>> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, Option<&String>) -> Option<String>>>: Freeze,
*const RcInner<dyn Fn(&mut App, AnyElement, String) -> Rc<dyn Widget>> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, AnyElement, String) -> Rc<dyn Widget>>>: Freeze,
*const (): Freeze,
NonZero<u32>: Freeze,
&'static TextEditingControllerVTable: Freeze,
*const RcInner<Keep> is !null: Freeze,
PhantomData<RcInner<Keep>>: Freeze,
*const RcInner<dyn Fn(&mut App, String)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, String)>>: Freeze,
*const RcInner<dyn Fn(&mut App, AnyElement, Retained<Handle<MagnifierController>>, Retained<Handle<ValueNotifier<MagnifierInfo>>>) -> Option<Rc<dyn Widget>>> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, AnyElement, Retained<Handle<MagnifierController>>, Retained<Handle<ValueNotifier<MagnifierInfo>>>) -> Option<Rc<dyn Widget>>>>: Freeze,
&'static FocusNodeVTable: Freeze,
*const RcInner<dyn Widget> is !null: Freeze,
PhantomData<RcInner<dyn Widget>>: Freeze,
&'static dyn ColorExtension: Freeze,
*const RcInner<dyn ColorExtension> is !null: Freeze,
PhantomData<RcInner<dyn ColorExtension>>: Freeze,
PhantomData<String>: Freeze,
*const RcInner<Paint> is !null: Freeze,
PhantomData<RcInner<Paint>>: Freeze,
PhantomData<Shadow>: Freeze,
PhantomData<FontFeature>: Freeze,
PhantomData<FontVariation>: Freeze,
*const RcInner<dyn TextStyleExtension> is !null: Freeze,
PhantomData<RcInner<dyn TextStyleExtension>>: Freeze,
*const RcInner<dyn InputBorder> is !null: Freeze,
PhantomData<RcInner<dyn InputBorder>>: Freeze,
PhantomData<fn() -> WidgetStatesController>: Freeze,
*const RcInner<dyn Fn(&mut App, &str)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, &str)>>: Freeze,
PhantomData<TextInputFormatterRef>: Freeze,
*const RcInner<dyn TextSelectionControls> is !null: Freeze,
PhantomData<RcInner<dyn TextSelectionControls>>: Freeze,
*const RcInner<dyn Fn(&mut App, PointerDownEvent)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, PointerDownEvent)>>: Freeze,
*const RcInner<dyn Fn(&mut App, PointerUpEvent)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, PointerUpEvent)>>: Freeze,
*const RcInner<dyn MouseCursor> is !null: Freeze,
PhantomData<RcInner<dyn MouseCursor>>: Freeze,
*const RcInner<dyn Fn(&mut App, AnyElement, i32, Option<i32>, bool) -> Option<Rc<dyn Widget>>> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, AnyElement, i32, Option<i32>, bool) -> Option<Rc<dyn Widget>>>>: Freeze,
*const RcInner<dyn ScrollPhysics> is !null: Freeze,
PhantomData<RcInner<dyn ScrollPhysics>>: Freeze,
&'static ScrollControllerVTable: Freeze,
*const RcInner<dyn Fn(&mut App, KeyboardInsertedContent)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, KeyboardInsertedContent)>>: Freeze,
*const RcInner<dyn Fn(&mut App, AnyElement, Handle<EditableTextState>) -> Rc<dyn Widget>> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, AnyElement, Handle<EditableTextState>) -> Rc<dyn Widget>>>: Freeze,
PhantomData<fn() -> UndoHistoryController>: Freeze,
PhantomData<Locale>: Freeze,
*const RcInner<dyn SpellCheckService> is !null: Freeze,
PhantomData<RcInner<dyn SpellCheckService>>: Freeze,
impl Move for TextFormField
impl Unpin for TextFormFieldwhere
Rc<dyn Key>: Unpin,
Rc<dyn Fn(&mut App, AnyFormFieldState<String>) -> Rc<dyn Widget>>: Unpin,
Rc<dyn Fn(&mut App, Option<String>)>: Unpin,
Rc<dyn Fn(&mut App)>: Unpin,
*const u8 is !null: Unpin,
Rc<dyn Fn(&mut App, Option<&String>) -> Option<String>>: Unpin,
Rc<dyn Fn(&mut App, AnyElement, String) -> Rc<dyn Widget>>: Unpin,
*const (): Unpin,
NonZero<u32>: Unpin,
&'static TextEditingControllerVTable: Unpin,
Rc<Keep>: Unpin,
Rc<dyn Fn(&mut App, String)>: Unpin,
Rc<dyn Fn(&mut App, AnyElement, Retained<Handle<MagnifierController>>, Retained<Handle<ValueNotifier<MagnifierInfo>>>) -> Option<Rc<dyn Widget>>>: Unpin,
&'static FocusNodeVTable: Unpin,
Rc<dyn Widget>: Unpin,
&'static dyn ColorExtension: Unpin,
Rc<dyn ColorExtension>: Unpin,
Rc<Paint>: Unpin,
Rc<dyn TextStyleExtension>: Unpin,
Rc<dyn InputBorder>: Unpin,
Rc<dyn Fn(&mut App, &str)>: Unpin,
Rc<dyn TextInputFormatter>: Unpin,
Rc<dyn TextSelectionControls>: Unpin,
Rc<dyn Fn(&mut App, PointerDownEvent)>: Unpin,
Rc<dyn Fn(&mut App, PointerUpEvent)>: Unpin,
Rc<dyn MouseCursor>: Unpin,
Rc<dyn Fn(&mut App, AnyElement, i32, Option<i32>, bool) -> Option<Rc<dyn Widget>>>: Unpin,
Rc<dyn ScrollPhysics>: Unpin,
&'static ScrollControllerVTable: Unpin,
Rc<dyn Fn(&mut App, KeyboardInsertedContent)>: Unpin,
Rc<dyn Fn(&mut App, AnyElement, Handle<EditableTextState>) -> Rc<dyn Widget>>: Unpin,
Rc<dyn SpellCheckService>: Unpin,
impl UnsafeUnpin for TextFormFieldwhere
*const RcInner<dyn Key> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Key>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, AnyFormFieldState<String>) -> Rc<dyn Widget>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, AnyFormFieldState<String>) -> Rc<dyn Widget>>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, Option<String>)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, Option<String>)>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App)>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, Option<&String>) -> Option<String>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, Option<&String>) -> Option<String>>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, AnyElement, String) -> Rc<dyn Widget>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, AnyElement, String) -> Rc<dyn Widget>>>: UnsafeUnpin,
*const (): UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
&'static TextEditingControllerVTable: UnsafeUnpin,
*const RcInner<Keep> is !null: UnsafeUnpin,
PhantomData<RcInner<Keep>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, String)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, String)>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, AnyElement, Retained<Handle<MagnifierController>>, Retained<Handle<ValueNotifier<MagnifierInfo>>>) -> Option<Rc<dyn Widget>>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, AnyElement, Retained<Handle<MagnifierController>>, Retained<Handle<ValueNotifier<MagnifierInfo>>>) -> Option<Rc<dyn Widget>>>>: UnsafeUnpin,
&'static FocusNodeVTable: UnsafeUnpin,
*const RcInner<dyn Widget> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Widget>>: UnsafeUnpin,
&'static dyn ColorExtension: UnsafeUnpin,
*const RcInner<dyn ColorExtension> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn ColorExtension>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const RcInner<Paint> is !null: UnsafeUnpin,
PhantomData<RcInner<Paint>>: UnsafeUnpin,
PhantomData<Shadow>: UnsafeUnpin,
PhantomData<FontFeature>: UnsafeUnpin,
PhantomData<FontVariation>: UnsafeUnpin,
*const RcInner<dyn TextStyleExtension> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn TextStyleExtension>>: UnsafeUnpin,
*const RcInner<dyn InputBorder> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn InputBorder>>: UnsafeUnpin,
PhantomData<fn() -> WidgetStatesController>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, &str)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, &str)>>: UnsafeUnpin,
PhantomData<TextInputFormatterRef>: UnsafeUnpin,
*const RcInner<dyn TextSelectionControls> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn TextSelectionControls>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, PointerDownEvent)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, PointerDownEvent)>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, PointerUpEvent)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, PointerUpEvent)>>: UnsafeUnpin,
*const RcInner<dyn MouseCursor> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn MouseCursor>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, AnyElement, i32, Option<i32>, bool) -> Option<Rc<dyn Widget>>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, AnyElement, i32, Option<i32>, bool) -> Option<Rc<dyn Widget>>>>: UnsafeUnpin,
*const RcInner<dyn ScrollPhysics> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn ScrollPhysics>>: UnsafeUnpin,
&'static ScrollControllerVTable: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, KeyboardInsertedContent)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, KeyboardInsertedContent)>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, AnyElement, Handle<EditableTextState>) -> Rc<dyn Widget>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, AnyElement, Handle<EditableTextState>) -> Rc<dyn Widget>>>: UnsafeUnpin,
PhantomData<fn() -> UndoHistoryController>: UnsafeUnpin,
PhantomData<Locale>: UnsafeUnpin,
*const RcInner<dyn SpellCheckService> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn SpellCheckService>>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<W> IntoWidget<StatefulKind> for Wwhere
W: StatefulWidget,
impl<W> IntoWidget<StatefulKind> for Wwhere
W: StatefulWidget,
Source§fn into_widget(self) -> Rc<dyn Widget>
fn into_widget(self) -> Rc<dyn Widget>
creation_location.