pub struct InputDecorationTheme {
pub key: Option<KeyRef>,
/* private fields */
}Expand description
Defines the default appearance of InputDecorators.
Descendant widgets obtain the current theme’s InputDecorationThemeData using
InputDecorationTheme::of. When a widget uses InputDecorationTheme::of, it is
automatically rebuilt if the theme later changes.
See also:
InputDecorationThemeData, which describes the actual configuration of an input decoration theme.ThemeData::input_decoration_theme, which specifies an input decoration theme as part of the overall Material theme.
Dart’s constructor takes either the properties or a data; here the
properties are the with_* setters and with_data the other, and each
setter that breaks Dart’s constructor assert (a data together with any property) fails in
a debug build. The getters are methods, as Dart’s, hence the with_ prefix.
Fields§
§key: Option<KeyRef>Implementations§
Source§impl InputDecorationTheme
impl InputDecorationTheme
Sourcepub fn new() -> InputDecorationTheme
pub fn new() -> InputDecorationTheme
Creates a InputDecorationTheme that controls visual parameters for
descendant InputDecorators.
Sourcepub fn key(self, key: KeyRef) -> InputDecorationTheme
pub fn key(self, key: KeyRef) -> InputDecorationTheme
Dart InputDecorationTheme(key:).
Sourcepub fn child<K>(self, child: impl IntoWidget<K>) -> InputDecorationTheme
pub fn child<K>(self, child: impl IntoWidget<K>) -> InputDecorationTheme
Dart InputDecorationTheme(child:); the default is SizedBox::shrink().
Sourcepub fn with_data(self, data: InputDecorationThemeData) -> InputDecorationTheme
pub fn with_data(self, data: InputDecorationThemeData) -> InputDecorationTheme
Dart InputDecorationTheme(data:).
Sourcepub fn with_label_style(
self,
label_style: impl Into<AnyTextStyle>,
) -> InputDecorationTheme
pub fn with_label_style( self, label_style: impl Into<AnyTextStyle>, ) -> InputDecorationTheme
Dart InputDecorationTheme(labelStyle:).
Sourcepub fn with_floating_label_style(
self,
floating_label_style: impl Into<AnyTextStyle>,
) -> InputDecorationTheme
pub fn with_floating_label_style( self, floating_label_style: impl Into<AnyTextStyle>, ) -> InputDecorationTheme
Dart InputDecorationTheme(floatingLabelStyle:).
Sourcepub fn with_helper_style(
self,
helper_style: impl Into<AnyTextStyle>,
) -> InputDecorationTheme
pub fn with_helper_style( self, helper_style: impl Into<AnyTextStyle>, ) -> InputDecorationTheme
Dart InputDecorationTheme(helperStyle:).
Sourcepub fn with_helper_max_lines(
self,
helper_max_lines: i32,
) -> InputDecorationTheme
pub fn with_helper_max_lines( self, helper_max_lines: i32, ) -> InputDecorationTheme
Dart InputDecorationTheme(helperMaxLines:).
Sourcepub fn with_hint_style(
self,
hint_style: impl Into<AnyTextStyle>,
) -> InputDecorationTheme
pub fn with_hint_style( self, hint_style: impl Into<AnyTextStyle>, ) -> InputDecorationTheme
Dart InputDecorationTheme(hintStyle:).
Sourcepub fn with_hint_fade_duration(
self,
hint_fade_duration: Duration,
) -> InputDecorationTheme
pub fn with_hint_fade_duration( self, hint_fade_duration: Duration, ) -> InputDecorationTheme
Dart InputDecorationTheme(hintFadeDuration:).
Sourcepub fn with_hint_max_lines(self, hint_max_lines: i32) -> InputDecorationTheme
pub fn with_hint_max_lines(self, hint_max_lines: i32) -> InputDecorationTheme
Dart InputDecorationTheme(hintMaxLines:).
Sourcepub fn with_error_style(
self,
error_style: impl Into<AnyTextStyle>,
) -> InputDecorationTheme
pub fn with_error_style( self, error_style: impl Into<AnyTextStyle>, ) -> InputDecorationTheme
Dart InputDecorationTheme(errorStyle:).
Sourcepub fn with_error_max_lines(self, error_max_lines: i32) -> InputDecorationTheme
pub fn with_error_max_lines(self, error_max_lines: i32) -> InputDecorationTheme
Dart InputDecorationTheme(errorMaxLines:).
Sourcepub fn with_floating_label_behavior(
self,
floating_label_behavior: FloatingLabelBehavior,
) -> InputDecorationTheme
pub fn with_floating_label_behavior( self, floating_label_behavior: FloatingLabelBehavior, ) -> InputDecorationTheme
Dart InputDecorationTheme(floatingLabelBehavior:).
Sourcepub fn with_floating_label_alignment(
self,
floating_label_alignment: FloatingLabelAlignment,
) -> InputDecorationTheme
pub fn with_floating_label_alignment( self, floating_label_alignment: FloatingLabelAlignment, ) -> InputDecorationTheme
Dart InputDecorationTheme(floatingLabelAlignment:).
Sourcepub fn with_is_dense(self, is_dense: bool) -> InputDecorationTheme
pub fn with_is_dense(self, is_dense: bool) -> InputDecorationTheme
Dart InputDecorationTheme(isDense:).
Sourcepub fn with_content_padding(
self,
content_padding: impl Into<EdgeInsetsGeometry>,
) -> InputDecorationTheme
pub fn with_content_padding( self, content_padding: impl Into<EdgeInsetsGeometry>, ) -> InputDecorationTheme
Dart InputDecorationTheme(contentPadding:).
Sourcepub fn with_is_collapsed(self, is_collapsed: bool) -> InputDecorationTheme
pub fn with_is_collapsed(self, is_collapsed: bool) -> InputDecorationTheme
Dart InputDecorationTheme(isCollapsed:).
Sourcepub fn with_icon_color(
self,
icon_color: impl Into<AnyColor>,
) -> InputDecorationTheme
pub fn with_icon_color( self, icon_color: impl Into<AnyColor>, ) -> InputDecorationTheme
Dart InputDecorationTheme(iconColor:).
Sourcepub fn with_prefix_style(
self,
prefix_style: impl Into<AnyTextStyle>,
) -> InputDecorationTheme
pub fn with_prefix_style( self, prefix_style: impl Into<AnyTextStyle>, ) -> InputDecorationTheme
Dart InputDecorationTheme(prefixStyle:).
Sourcepub fn with_prefix_icon_color(
self,
prefix_icon_color: impl Into<AnyColor>,
) -> InputDecorationTheme
pub fn with_prefix_icon_color( self, prefix_icon_color: impl Into<AnyColor>, ) -> InputDecorationTheme
Dart InputDecorationTheme(prefixIconColor:).
Sourcepub fn with_prefix_icon_constraints(
self,
prefix_icon_constraints: BoxConstraints,
) -> InputDecorationTheme
pub fn with_prefix_icon_constraints( self, prefix_icon_constraints: BoxConstraints, ) -> InputDecorationTheme
Dart InputDecorationTheme(prefixIconConstraints:).
Sourcepub fn with_suffix_style(
self,
suffix_style: impl Into<AnyTextStyle>,
) -> InputDecorationTheme
pub fn with_suffix_style( self, suffix_style: impl Into<AnyTextStyle>, ) -> InputDecorationTheme
Dart InputDecorationTheme(suffixStyle:).
Sourcepub fn with_suffix_icon_color(
self,
suffix_icon_color: impl Into<AnyColor>,
) -> InputDecorationTheme
pub fn with_suffix_icon_color( self, suffix_icon_color: impl Into<AnyColor>, ) -> InputDecorationTheme
Dart InputDecorationTheme(suffixIconColor:).
Sourcepub fn with_suffix_icon_constraints(
self,
suffix_icon_constraints: BoxConstraints,
) -> InputDecorationTheme
pub fn with_suffix_icon_constraints( self, suffix_icon_constraints: BoxConstraints, ) -> InputDecorationTheme
Dart InputDecorationTheme(suffixIconConstraints:).
Sourcepub fn with_counter_style(
self,
counter_style: impl Into<AnyTextStyle>,
) -> InputDecorationTheme
pub fn with_counter_style( self, counter_style: impl Into<AnyTextStyle>, ) -> InputDecorationTheme
Dart InputDecorationTheme(counterStyle:).
Sourcepub fn with_filled(self, filled: bool) -> InputDecorationTheme
pub fn with_filled(self, filled: bool) -> InputDecorationTheme
Dart InputDecorationTheme(filled:).
Sourcepub fn with_fill_color(
self,
fill_color: impl Into<AnyColor>,
) -> InputDecorationTheme
pub fn with_fill_color( self, fill_color: impl Into<AnyColor>, ) -> InputDecorationTheme
Dart InputDecorationTheme(fillColor:).
Sourcepub fn with_active_indicator_border(
self,
active_indicator_border: impl Into<AnyBorderSide>,
) -> InputDecorationTheme
pub fn with_active_indicator_border( self, active_indicator_border: impl Into<AnyBorderSide>, ) -> InputDecorationTheme
Dart InputDecorationTheme(activeIndicatorBorder:).
Sourcepub fn with_outline_border(
self,
outline_border: impl Into<AnyBorderSide>,
) -> InputDecorationTheme
pub fn with_outline_border( self, outline_border: impl Into<AnyBorderSide>, ) -> InputDecorationTheme
Dart InputDecorationTheme(outlineBorder:).
Sourcepub fn with_focus_color(self, focus_color: Color) -> InputDecorationTheme
pub fn with_focus_color(self, focus_color: Color) -> InputDecorationTheme
Dart InputDecorationTheme(focusColor:).
Sourcepub fn with_hover_color(self, hover_color: Color) -> InputDecorationTheme
pub fn with_hover_color(self, hover_color: Color) -> InputDecorationTheme
Dart InputDecorationTheme(hoverColor:).
Sourcepub fn with_error_border(
self,
error_border: impl Into<InputBorderRef>,
) -> InputDecorationTheme
pub fn with_error_border( self, error_border: impl Into<InputBorderRef>, ) -> InputDecorationTheme
Dart InputDecorationTheme(errorBorder:).
Sourcepub fn with_focused_border(
self,
focused_border: impl Into<InputBorderRef>,
) -> InputDecorationTheme
pub fn with_focused_border( self, focused_border: impl Into<InputBorderRef>, ) -> InputDecorationTheme
Dart InputDecorationTheme(focusedBorder:).
Sourcepub fn with_focused_error_border(
self,
focused_error_border: impl Into<InputBorderRef>,
) -> InputDecorationTheme
pub fn with_focused_error_border( self, focused_error_border: impl Into<InputBorderRef>, ) -> InputDecorationTheme
Dart InputDecorationTheme(focusedErrorBorder:).
Sourcepub fn with_disabled_border(
self,
disabled_border: impl Into<InputBorderRef>,
) -> InputDecorationTheme
pub fn with_disabled_border( self, disabled_border: impl Into<InputBorderRef>, ) -> InputDecorationTheme
Dart InputDecorationTheme(disabledBorder:).
Sourcepub fn with_enabled_border(
self,
enabled_border: impl Into<InputBorderRef>,
) -> InputDecorationTheme
pub fn with_enabled_border( self, enabled_border: impl Into<InputBorderRef>, ) -> InputDecorationTheme
Dart InputDecorationTheme(enabledBorder:).
Sourcepub fn with_border(
self,
border: impl Into<InputBorderRef>,
) -> InputDecorationTheme
pub fn with_border( self, border: impl Into<InputBorderRef>, ) -> InputDecorationTheme
Dart InputDecorationTheme(border:).
Sourcepub fn with_align_label_with_hint(
self,
align_label_with_hint: bool,
) -> InputDecorationTheme
pub fn with_align_label_with_hint( self, align_label_with_hint: bool, ) -> InputDecorationTheme
Dart InputDecorationTheme(alignLabelWithHint:).
Sourcepub fn with_constraints(
self,
constraints: BoxConstraints,
) -> InputDecorationTheme
pub fn with_constraints( self, constraints: BoxConstraints, ) -> InputDecorationTheme
Dart InputDecorationTheme(constraints:).
Sourcepub fn with_visual_density(
self,
visual_density: VisualDensity,
) -> InputDecorationTheme
pub fn with_visual_density( self, visual_density: VisualDensity, ) -> InputDecorationTheme
Dart InputDecorationTheme(visualDensity:).
Sourcepub fn label_style(&self) -> Option<AnyTextStyle>
pub fn label_style(&self) -> Option<AnyTextStyle>
Overrides the default value for InputDecoration::label_style.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::label_style property in data instead.
Sourcepub fn floating_label_style(&self) -> Option<AnyTextStyle>
pub fn floating_label_style(&self) -> Option<AnyTextStyle>
Overrides the default value for InputDecoration::floating_label_style.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::floating_label_style property in data instead.
Sourcepub fn helper_style(&self) -> Option<AnyTextStyle>
pub fn helper_style(&self) -> Option<AnyTextStyle>
Overrides the default value for InputDecoration::floating_label_style.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::helper_style property in data instead.
Sourcepub fn helper_max_lines(&self) -> Option<i32>
pub fn helper_max_lines(&self) -> Option<i32>
Overrides the default value for InputDecoration::helper_max_lines.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::helper_max_lines property in data instead.
Sourcepub fn hint_style(&self) -> Option<AnyTextStyle>
pub fn hint_style(&self) -> Option<AnyTextStyle>
Overrides the default value for InputDecoration::hint_style.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::hint_style property in data instead.
Sourcepub fn hint_fade_duration(&self) -> Option<Duration>
pub fn hint_fade_duration(&self) -> Option<Duration>
Overrides the default value for InputDecoration::hint_fade_duration.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::hint_fade_duration property in data instead.
Sourcepub fn hint_max_lines(&self) -> Option<i32>
pub fn hint_max_lines(&self) -> Option<i32>
Overrides the default value for InputDecoration::hint_max_lines.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::hint_max_lines property in data instead.
Sourcepub fn error_style(&self) -> Option<AnyTextStyle>
pub fn error_style(&self) -> Option<AnyTextStyle>
Overrides the default value for InputDecoration::error_style.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::error_style property in data instead.
Sourcepub fn error_max_lines(&self) -> Option<i32>
pub fn error_max_lines(&self) -> Option<i32>
Overrides the default value for InputDecoration::error_max_lines.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::error_max_lines property in data instead.
Sourcepub fn floating_label_behavior(&self) -> FloatingLabelBehavior
pub fn floating_label_behavior(&self) -> FloatingLabelBehavior
Overrides the default value for InputDecoration::floating_label_behavior.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::floating_label_behavior property in data instead.
Sourcepub fn floating_label_alignment(&self) -> FloatingLabelAlignment
pub fn floating_label_alignment(&self) -> FloatingLabelAlignment
Overrides the default value for InputDecoration::floating_label_alignment.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::floating_label_alignment property in data instead.
Sourcepub fn is_dense(&self) -> bool
pub fn is_dense(&self) -> bool
Overrides the default value for InputDecoration::is_dense.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::is_dense property in data instead.
Sourcepub fn content_padding(&self) -> Option<EdgeInsetsGeometry>
pub fn content_padding(&self) -> Option<EdgeInsetsGeometry>
Overrides the default value for InputDecoration::content_padding.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::content_padding property in data instead.
Sourcepub fn is_collapsed(&self) -> bool
pub fn is_collapsed(&self) -> bool
Overrides the default value for InputDecoration::is_collapsed.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::is_collapsed property in data instead.
Sourcepub fn icon_color(&self) -> Option<AnyColor>
pub fn icon_color(&self) -> Option<AnyColor>
Overrides the default value for InputDecoration::icon_color.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::icon_color property in data instead.
Sourcepub fn prefix_style(&self) -> Option<AnyTextStyle>
pub fn prefix_style(&self) -> Option<AnyTextStyle>
Overrides the default value for InputDecoration::prefix_style.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::prefix_style property in data instead.
Sourcepub fn prefix_icon_color(&self) -> Option<AnyColor>
pub fn prefix_icon_color(&self) -> Option<AnyColor>
Overrides the default value for InputDecoration::prefix_icon_color.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::prefix_icon_color property in data instead.
Sourcepub fn prefix_icon_constraints(&self) -> Option<BoxConstraints>
pub fn prefix_icon_constraints(&self) -> Option<BoxConstraints>
Overrides the default value for InputDecoration::prefix_icon_constraints.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::prefix_icon_constraints property in data instead.
Sourcepub fn suffix_style(&self) -> Option<AnyTextStyle>
pub fn suffix_style(&self) -> Option<AnyTextStyle>
Overrides the default value for InputDecoration::suffix_style.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::suffix_style property in data instead.
Sourcepub fn suffix_icon_color(&self) -> Option<AnyColor>
pub fn suffix_icon_color(&self) -> Option<AnyColor>
Overrides the default value for InputDecoration::suffix_icon_color.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::suffix_icon_color property in data instead.
Sourcepub fn suffix_icon_constraints(&self) -> Option<BoxConstraints>
pub fn suffix_icon_constraints(&self) -> Option<BoxConstraints>
Overrides the default value for InputDecoration::suffix_icon_constraints.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::suffix_icon_constraints property in data instead.
Sourcepub fn counter_style(&self) -> Option<AnyTextStyle>
pub fn counter_style(&self) -> Option<AnyTextStyle>
Overrides the default value for InputDecoration::counter_style.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::counter_style property in data instead.
Sourcepub fn filled(&self) -> bool
pub fn filled(&self) -> bool
Overrides the default value for InputDecoration::filled.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::filled property in data instead.
Sourcepub fn fill_color(&self) -> Option<AnyColor>
pub fn fill_color(&self) -> Option<AnyColor>
Overrides the default value for InputDecoration::fill_color.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::fill_color property in data instead.
Sourcepub fn active_indicator_border(&self) -> Option<AnyBorderSide>
pub fn active_indicator_border(&self) -> Option<AnyBorderSide>
The borderSide of the UnderlineInputBorder with color and weight.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::active_indicator_border property in data instead.
Sourcepub fn outline_border(&self) -> Option<AnyBorderSide>
pub fn outline_border(&self) -> Option<AnyBorderSide>
The borderSide of the OutlineInputBorder with color and weight.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::outline_border property in data instead.
Sourcepub fn focus_color(&self) -> Option<Color>
pub fn focus_color(&self) -> Option<Color>
Overrides the default value for InputDecoration::focus_color.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::focus_color property in data instead.
Sourcepub fn hover_color(&self) -> Option<Color>
pub fn hover_color(&self) -> Option<Color>
Overrides the default value for InputDecoration::hover_color.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::hover_color property in data instead.
Sourcepub fn error_border(&self) -> Option<&InputBorderRef>
pub fn error_border(&self) -> Option<&InputBorderRef>
Overrides the default value for InputDecoration::error_border.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::error_border property in data instead.
Sourcepub fn focused_border(&self) -> Option<&InputBorderRef>
pub fn focused_border(&self) -> Option<&InputBorderRef>
Overrides the default value for InputDecoration::focused_border.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::focused_border property in data instead.
Sourcepub fn focused_error_border(&self) -> Option<&InputBorderRef>
pub fn focused_error_border(&self) -> Option<&InputBorderRef>
Overrides the default value for InputDecoration::focused_error_border.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::focused_error_border property in data instead.
Sourcepub fn disabled_border(&self) -> Option<&InputBorderRef>
pub fn disabled_border(&self) -> Option<&InputBorderRef>
Overrides the default value for InputDecoration::disabled_border.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::disabled_border property in data instead.
Sourcepub fn enabled_border(&self) -> Option<&InputBorderRef>
pub fn enabled_border(&self) -> Option<&InputBorderRef>
Overrides the default value for InputDecoration::enabled_border.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::enabled_border property in data instead.
Sourcepub fn border(&self) -> Option<&InputBorderRef>
pub fn border(&self) -> Option<&InputBorderRef>
Overrides the default value for InputDecoration::border.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::border property in data instead.
Sourcepub fn align_label_with_hint(&self) -> bool
pub fn align_label_with_hint(&self) -> bool
Overrides the default value for InputDecoration::align_label_with_hint.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::align_label_with_hint property in data instead.
Sourcepub fn constraints(&self) -> Option<BoxConstraints>
pub fn constraints(&self) -> Option<BoxConstraints>
Overrides the default value for InputDecoration::constraints.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::constraints property in data instead.
Sourcepub fn visual_density(&self) -> Option<VisualDensity>
pub fn visual_density(&self) -> Option<VisualDensity>
Overrides the default value for InputDecoration::visual_density.
This property is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::visual_density property in data instead.
Sourcepub fn data(&self) -> InputDecorationThemeData
pub fn data(&self) -> InputDecorationThemeData
The properties used for all descendant TabBar widgets.
Sourcepub fn of(app: &mut App, context: BuildContext) -> InputDecorationThemeData
pub fn of(app: &mut App, context: BuildContext) -> InputDecorationThemeData
Returns the closest InputDecorationThemeData instance given the build context.
If there is no enclosing InputDecorationTheme widget, then
ThemeData::input_decoration_theme is used.
Typical usage is as follows:
InputDecorationThemeData theme = InputDecorationTheme.of(context);Sourcepub fn copy_with(&self) -> InputDecorationTheme
pub fn copy_with(&self) -> InputDecorationTheme
Creates a copy of this object but with the given fields replaced with the new values.
This method is obsolete and will be deprecated in a future release:
please use the InputDecorationThemeData::copy_with instead.
Dart’s named arguments are the with_* setters on the copy
(theme.copy_with().with_is_dense(true)). As in Dart, the copy carries neither the key
nor the child, and holds the properties, never a data.
Sourcepub fn merge(
&self,
other: Option<&InputDecorationTheme>,
) -> InputDecorationTheme
pub fn merge( &self, other: Option<&InputDecorationTheme>, ) -> InputDecorationTheme
Returns a copy of this InputDecorationTheme where the non-null fields in the given InputDecorationTheme override the corresponding nullable fields in this InputDecorationTheme.
The non-nullable fields of InputDecorationTheme, such as floating_label_behavior,
is_dense, is_collapsed, filled, and align_label_with_hint cannot be overridden.
In other words, the fields of the provided InputDecorationTheme are used to
fill in the unspecified and nullable fields of this InputDecorationTheme.
Trait Implementations§
Source§impl Clone for InputDecorationTheme
impl Clone for InputDecorationTheme
Source§impl Debug for InputDecorationTheme
impl Debug for InputDecorationTheme
Source§impl Default for InputDecorationTheme
impl Default for InputDecorationTheme
Source§fn default() -> InputDecorationTheme
fn default() -> InputDecorationTheme
Source§impl From<InputDecorationTheme> for InputDecorationThemeData
impl From<InputDecorationTheme> for InputDecorationThemeData
Source§fn from(theme: InputDecorationTheme) -> InputDecorationThemeData
fn from(theme: InputDecorationTheme) -> InputDecorationThemeData
Dart’s inputDecorationTheme.data, where an API takes either type.
Source§impl InheritedWidget for InputDecorationTheme
impl InheritedWidget for InputDecorationTheme
Source§fn update_should_notify(&self, old_widget: &InputDecorationTheme) -> bool
fn update_should_notify(&self, old_widget: &InputDecorationTheme) -> bool
Source§fn as_inherited_theme(&self) -> Option<&dyn InheritedTheme>
fn as_inherited_theme(&self) -> Option<&dyn InheritedTheme>
this is InheritedTheme: an inherited widget that is an InheritedTheme
answers with itself, which is what InheritedTheme::capture collects.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.Auto Trait Implementations§
impl !RefUnwindSafe for InputDecorationTheme
impl !Send for InputDecorationTheme
impl !Sync for InputDecorationTheme
impl !UnwindSafe for InputDecorationTheme
impl Forget for InputDecorationTheme
impl Freeze for InputDecorationThemewhere
*const RcInner<dyn Key> is !null: Freeze,
PhantomData<RcInner<dyn Key>>: Freeze,
&'static dyn ColorExtension: Freeze,
*const RcInner<dyn ColorExtension> is !null: Freeze,
PhantomData<RcInner<dyn ColorExtension>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: 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 BorderSideExtension> is !null: Freeze,
PhantomData<RcInner<dyn BorderSideExtension>>: Freeze,
*const RcInner<dyn InputBorder> is !null: Freeze,
PhantomData<RcInner<dyn InputBorder>>: Freeze,
*const RcInner<dyn Widget> is !null: Freeze,
PhantomData<RcInner<dyn Widget>>: Freeze,
impl Move for InputDecorationTheme
impl Unpin for InputDecorationTheme
impl UnsafeUnpin for InputDecorationThemewhere
*const RcInner<dyn Key> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Key>>: UnsafeUnpin,
&'static dyn ColorExtension: UnsafeUnpin,
*const RcInner<dyn ColorExtension> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn ColorExtension>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: 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 BorderSideExtension> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn BorderSideExtension>>: UnsafeUnpin,
*const RcInner<dyn InputBorder> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn InputBorder>>: UnsafeUnpin,
*const RcInner<dyn Widget> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Widget>>: 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<W> IntoWidget<InheritedKind> for Wwhere
W: InheritedWidget,
impl<W> IntoWidget<InheritedKind> for Wwhere
W: InheritedWidget,
Source§fn into_widget(self) -> Rc<dyn Widget>
fn into_widget(self) -> Rc<dyn Widget>
creation_location.