pub struct TabBar {Show 32 fields
pub key: Option<KeyRef>,
pub tabs: Vec<WidgetRef>,
pub controller: Option<Ref<TabController>>,
pub scroll_controller: Option<Ref<TabBarScrollController>>,
pub is_scrollable: bool,
pub padding: Option<EdgeInsetsGeometry>,
pub indicator_color: Option<Color>,
pub indicator_weight: f64,
pub indicator_padding: EdgeInsetsGeometry,
pub indicator: Option<DecorationRef>,
pub automatic_indicator_color_adjustment: bool,
pub indicator_size: Option<TabBarIndicatorSize>,
pub divider_color: Option<Color>,
pub divider_height: Option<f64>,
pub label_color: Option<AnyColor>,
pub label_style: Option<TextStyle>,
pub label_padding: Option<EdgeInsetsGeometry>,
pub unselected_label_color: Option<Color>,
pub unselected_label_style: Option<TextStyle>,
pub overlay_color: Option<WidgetStatePropertyRef<Option<Color>>>,
pub drag_start_behavior: DragStartBehavior,
pub mouse_cursor: Option<MouseCursorRef>,
pub enable_feedback: Option<bool>,
pub on_tap: Option<ValueChanged<usize>>,
pub on_hover: Option<TabValueChanged<bool>>,
pub on_focus_change: Option<TabValueChanged<bool>>,
pub physics: Option<ScrollPhysicsRef>,
pub splash_factory: Option<InteractiveInkFeatureFactoryRef>,
pub splash_border_radius: Option<BorderRadius>,
pub tab_alignment: Option<TabAlignment>,
pub text_scaler: Option<TextScaler>,
pub indicator_animation: Option<TabIndicatorAnimation>,
/* private fields */
}Expand description
A Material Design primary tab bar.
Primary tabs are placed at the top of the content pane under a top app bar. They display the main content destinations.
Typically created as the AppBar::bottom part of an AppBar and in
conjunction with a TabBarView.
If a TabController is not provided, then a DefaultTabController ancestor
must be provided instead. The tab controller’s TabController::length must
equal the length of the tabs list and the length of the
TabBarView::children list.
Requires one of its ancestors to be a Material widget.
Uses values from TabBarThemeData if it is set in the current context.
See also:
TabBar::secondary, for a secondary tab bar.TabBarView, which displays page views that correspond to each tab.TabController, which coordinates tab selection between aTabBarand aTabBarView.- https://m3.material.io/components/tabs/overview, the Material 3 tab bar specification.
Fields§
§key: Option<KeyRef>§tabs: Vec<WidgetRef>Typically a list of two or more Tab widgets.
The length of this list must match the controller’s
TabController::length and the length of the TabBarView::children list.
controller: Option<Ref<TabController>>This widget’s selection and animation state.
If TabController is not provided, then the value of DefaultTabController::of
will be used.
scroll_controller: Option<Ref<TabBarScrollController>>The TabBarScrollController for this TabBar.
This controller can be used to manipulate the scroll position of the TabBar.
is_scrollable: boolWhether this tab bar can be scrolled horizontally.
If is_scrollable is true, then each tab is as wide as needed
for its label and the entire TabBar is scrollable. Otherwise each tab gets an equal
share of the available space.
padding: Option<EdgeInsetsGeometry>The amount of space by which to inset the tab bar.
When is_scrollable is false, this will yield the same result
as if TabBar was wrapped in a Padding widget. When
is_scrollable is true, the scrollable itself is inset,
allowing the padding to scroll with the tab bar, rather than enclosing it.
indicator_color: Option<Color>The color of the line that appears below the selected tab.
If this parameter is null, then the value of the Theme’s indicatorColor property is used.
If indicator is specified or provided from TabBarThemeData,
this property is ignored.
indicator_weight: f64The thickness of the line that appears below the selected tab.
The value of this parameter must be greater than zero.
If ThemeData::use_material3 is true and TabBar is used to create a
primary tab bar, the default value is 3.0. If the provided value is less
than 3.0, the default value is used.
If ThemeData::use_material3 is true and TabBar::secondary is used to
create a secondary tab bar, the default value is 2.0.
If ThemeData::use_material3 is false, the default value is 2.0.
If indicator is specified or provided from TabBarThemeData,
this property is ignored. Otherwise, when drawing the default underline
indicator, the value of this parameter must be greater than zero.
indicator_padding: EdgeInsetsGeometryThe padding for the indicator.
The default value of this property is EdgeInsets::ZERO.
For is_scrollable tab bars, specifying K_TAB_LABEL_PADDING
will align the indicator with the tab’s text for Tab widgets and all but the
shortest Tab::text values.
indicator: Option<DecorationRef>Defines the appearance of the selected tab indicator.
If indicator is specified or provided from TabBarThemeData,
the indicator_color and
indicator_weight properties are ignored.
The default, underline-style, selected tab indicator can be defined with
UnderlineTabIndicator.
The indicator’s size is based on the tab’s bounds. If
indicator_size is TabBarIndicatorSize::Tab the tab’s
bounds are as wide as the space occupied by the tab in the tab bar. If
indicator_size is TabBarIndicatorSize::Label, then the
tab’s bounds are only as wide as the tab widget itself.
See also:
splash_border_radius, which defines the clipping radius of the splash and is generally used withBoxDecoration::border_radius.
automatic_indicator_color_adjustment: boolWhether this tab bar should automatically adjust the
indicator_color.
The default value of this property is true.
If automatic_indicator_color_adjustment
is true, then the indicator_color will be automatically
adjusted to Colors::WHITE when the indicator_color is same
as Material::color of the Material parent widget.
indicator_size: Option<TabBarIndicatorSize>Defines how the selected tab indicator’s size is computed.
The size of the selected tab indicator is defined relative to the
tab’s overall bounds if indicator_size is
TabBarIndicatorSize::Tab (the default) or relative to the bounds of the tab’s
widget if indicator_size is TabBarIndicatorSize::Label.
The selected tab’s location appearance can be refined further with
the indicator_color,
indicator_weight,
indicator_padding, and indicator
properties.
divider_color: Option<Color>The color of the divider.
If the divider_color is Colors::TRANSPARENT, then the
divider will not be drawn.
If null and ThemeData::use_material3 is false, TabBarThemeData::divider_color
color is used. If that is null and ThemeData::use_material3 is true,
ColorScheme::outline_variant will be used, otherwise divider will not be drawn.
divider_height: Option<f64>The height of the divider.
If the divider_height is zero or negative, then the divider
will not be drawn.
If null and ThemeData::use_material3 is true, TabBarThemeData::divider_height is
used. If that is also null and ThemeData::use_material3 is true, 1.0 will be used.
Otherwise divider will not be drawn.
label_color: Option<AnyColor>The color of selected tab labels.
If null, then TabBarThemeData::label_color is used. If that is also null and
ThemeData::use_material3 is true, ColorScheme::primary will be used,
otherwise the color of the ThemeData::primary_text_theme’s
TextTheme::body_large text color is used.
If label_color (or, if null, TabBarThemeData::label_color)
is a WidgetStateColor, then the effective tab color will depend on the
WidgetState::Selected state, i.e. if the Tab is selected or not,
ignoring unselected_label_color even if it’s non-null.
When this color or the TabBarThemeData::label_color is specified, it overrides
the TextStyle::color specified for the label_style or the
TabBarThemeData::label_style.
See also:
unselected_label_color, for color of unselected tab labels.
label_style: Option<TextStyle>The text style of the selected tab labels.
The color specified in label_style and
TabBarThemeData::label_style is used to style the label when
label_color or TabBarThemeData::label_color are not
specified.
If unselected_label_style is null, then this text
style will be used for both selected and unselected label styles.
If this property is null, then TabBarThemeData::label_style will be used.
If that is also null and ThemeData::use_material3 is true, TextTheme::title_small
will be used, otherwise the text style of the ThemeData::primary_text_theme’s
TextTheme::body_large definition is used.
label_padding: Option<EdgeInsetsGeometry>The padding added to each of the tab labels.
If there are few tabs with both icon and text and few tabs with only icon or text, this padding is vertically adjusted to provide uniform padding to all tabs.
If this property is null, then K_TAB_LABEL_PADDING is used.
unselected_label_color: Option<Color>The color of unselected tab labels.
If label_color (or, if null, TabBarThemeData::label_color)
is a WidgetStateColor, then the unselected tabs are rendered with
that WidgetStateColor’s resolved color for unselected state, even if
unselected_label_color is non-null.
If null, then TabBarThemeData::unselected_label_color is used. If that is also
null and ThemeData::use_material3 is true, ColorScheme::on_surface_variant
will be used, otherwise unselected tab labels are rendered with
label_color at 70% opacity.
When this color or the TabBarThemeData::unselected_label_color is specified, it
overrides the TextStyle::color specified for the
unselected_label_style or the
TabBarThemeData::unselected_label_style.
See also:
label_color, for color of selected tab labels.
unselected_label_style: Option<TextStyle>The text style of the unselected tab labels.
The color specified in unselected_label_style and
TabBarThemeData::unselected_label_style is used to style the label when
unselected_label_color or
TabBarThemeData::unselected_label_color are not specified.
If this property is null, then TabBarThemeData::unselected_label_style will be
used.
If that is also null and ThemeData::use_material3 is true, TextTheme::title_small
will be used, otherwise then the label_style value is used. If
label_style is null, the text style of the
ThemeData::primary_text_theme’s TextTheme::body_large definition is used.
overlay_color: Option<WidgetStatePropertyRef<Option<Color>>>Defines the ink response focus, hover, and splash colors.
If non-null, it is resolved against one of WidgetState::Focused,
WidgetState::Hovered, and WidgetState::Pressed.
WidgetState::Pressed triggers a ripple (an ink splash), per
the current Material Design spec.
If the overlay color is null or resolves to null, then if ThemeData::use_material3
is false, the default values for InkResponse::focus_color,
InkResponse::hover_color, InkResponse::splash_color, and
InkResponse::highlight_color will be used instead. If ThemeData::use_material3
if true, the default values are:
- selected:
- pressed - ThemeData.colorScheme.primary(0.1)
- hovered - ThemeData.colorScheme.primary(0.08)
- focused - ThemeData.colorScheme.primary(0.1)
- pressed - ThemeData.colorScheme.primary(0.1)
- hovered - ThemeData.colorScheme.onSurface(0.08)
- focused - ThemeData.colorScheme.onSurface(0.1)
drag_start_behavior: DragStartBehaviorDetermines the way that drag start behavior is handled.
mouse_cursor: Option<MouseCursorRef>The cursor for a mouse pointer when it enters or is hovering over the individual tab widgets.
If mouse_cursor is a WidgetStateMouseCursor,
WidgetStateProperty::resolve is used for the following WidgetStates:
WidgetState::Selected.
If null, then the value of TabBarThemeData::mouse_cursor is used. If
that is also null, then WidgetStateMouseCursor::clickable is used.
enable_feedback: Option<bool>Whether detected gestures should provide acoustic and/or haptic feedback.
For example, on Android a tap will produce a clicking sound and a long-press will produce a short vibration, when feedback is enabled.
Defaults to true.
on_tap: Option<ValueChanged<usize>>An optional callback that’s called when the TabBar is tapped.
The callback is applied to the index of the tab where the tap occurred.
This callback has no effect on the default handling of taps. It’s for
applications that want to do a little extra work when a tab is tapped,
even if the tap doesn’t change the TabController’s index. TabBar
on_tap callbacks should not make changes to the TabController since
that would interfere with the default tap handler.
on_hover: Option<TabValueChanged<bool>>An optional callback that’s called when a Tab’s hover state in the
TabBar changes.
Called when a pointer enters or exits the ink response area of the Tab.
The value passed to the callback is true if a pointer has entered the
Tab at index and false if a pointer has exited.
When hover is moved from one tab directly to another, this will be called twice. First to represent hover exiting the initial tab, and then second for the pointer entering hover over the next tab.
on_focus_change: Option<TabValueChanged<bool>>An optional callback that’s called when a Tab’s focus state in the
TabBar changes.
Called when the node for the Tab at index gains or loses focus.
The value passed to the callback is true if the node has gained focus for
the Tab at index and false if focus has been lost.
When focus is moved from one tab directly to another, this will be called twice. First to represent focus being lost by the initially focused tab, and then second for the next tab gaining focus.
physics: Option<ScrollPhysicsRef>How the TabBar’s scroll view should respond to user input.
For example, determines how the scroll view continues to animate after the user stops dragging the scroll view.
Defaults to matching platform conventions.
splash_factory: Option<InteractiveInkFeatureFactoryRef>Creates the tab bar’s InkWell splash factory, which defines
the appearance of “ink” splashes that occur in response to taps.
Use NoSplash::splash_factory to defeat ink splash rendering. For example
to defeat both the splash and the hover/pressed overlay, but not the
keyboard focused overlay:
TabBar::new(tabs)
.splash_factory(NoSplash::splash_factory())
.overlay_color(<dyn WidgetStateProperty<Option<Color>>>::resolve_with(|states| {
if states.contains(&WidgetState::Focused) { None } else { Some(Colors::TRANSPARENT) }
}))splash_border_radius: Option<BorderRadius>Defines the clipping radius of splashes that extend outside the bounds of the tab.
This can be useful to match the BoxDecoration::border_radius provided as
indicator.
If this property is null, it is interpreted as BorderRadius::ZERO.
tab_alignment: Option<TabAlignment>Specifies the horizontal alignment of the tabs within a TabBar.
If TabBar::is_scrollable is false, only TabAlignment::Fill and
TabAlignment::Center are supported. Otherwise an exception is thrown.
If TabBar::is_scrollable is true, only TabAlignment::Start,
TabAlignment::StartOffset, and TabAlignment::Center are supported. Otherwise
an exception is thrown.
If this is null, then the value of TabBarThemeData::tab_alignment is used.
If TabBarThemeData::tab_alignment is null and ThemeData::use_material3 is true,
then TabAlignment::StartOffset is used if is_scrollable
is true, otherwise TabAlignment::Fill is used.
If TabBarThemeData::tab_alignment is null and ThemeData::use_material3 is false,
then TabAlignment::Center is used if is_scrollable is
true, otherwise TabAlignment::Fill is used.
text_scaler: Option<TextScaler>Specifies the text scaling behavior for the Tab label.
If this is null, then the value of TabBarThemeData::text_scaler is used. If that is
also null, then the text scaling behavior is determined by the
MediaQueryData::text_scaler from the ambient MediaQuery, or 1.0 if there is no
MediaQuery in scope.
See also:
TextScaler, which is used to scale text based on the device’s text scale factor.
indicator_animation: Option<TabIndicatorAnimation>Specifies the animation behavior of the tab indicator.
If this is null, then the value of TabBarThemeData::indicator_animation is used.
If that is also null, then the tab indicator will animate linearly if the
indicator_size is TabBarIndicatorSize::Tab, otherwise it
will animate with an elastic effect if the indicator_size is
TabBarIndicatorSize::Label.
See also:
TabIndicatorAnimation, which specifies the animation behavior of the tab indicator.
Implementations§
Source§impl TabBar
impl TabBar
Sourcepub fn new(tabs: impl IntoIterator<Item = WidgetRef>) -> TabBar
pub fn new(tabs: impl IntoIterator<Item = WidgetRef>) -> TabBar
Creates a Material Design primary tab bar; Dart’s named arguments are the setters.
The length of the tabs argument must match the
controller’s TabController::length.
If a TabController is not provided, then there must be a
DefaultTabController ancestor.
The indicator_weight parameter defaults to 2.
The indicator_padding parameter defaults to
EdgeInsets::ZERO.
If indicator is not null or provided from TabBarTheme,
then indicator_color is ignored.
The indicator_weight does not affect the visual appearance
of the indicator when a custom indicator is provided. However,
it may still be used to compute the TabBar’s preferred size.
Sourcepub fn secondary(tabs: impl IntoIterator<Item = WidgetRef>) -> TabBar
pub fn secondary(tabs: impl IntoIterator<Item = WidgetRef>) -> TabBar
Creates a Material Design secondary tab bar.
Secondary tabs are used within a content area to further separate related content and establish hierarchy.
See also:
TabBar::new, for a primary tab bar.TabBarView, which displays page views that correspond to each tab.TabController, which coordinates tab selection between aTabBarand aTabBarView.- https://m3.material.io/components/tabs/overview, the Material 3 tab bar specification.
Sourcepub fn controller(self, controller: Ref<TabController>) -> TabBar
pub fn controller(self, controller: Ref<TabController>) -> TabBar
Dart TabBar(controller:).
Sourcepub fn scroll_controller(
self,
scroll_controller: Ref<TabBarScrollController>,
) -> TabBar
pub fn scroll_controller( self, scroll_controller: Ref<TabBarScrollController>, ) -> TabBar
Dart TabBar(scrollController:).
Sourcepub fn is_scrollable(self, is_scrollable: bool) -> TabBar
pub fn is_scrollable(self, is_scrollable: bool) -> TabBar
Dart TabBar(isScrollable:).
Sourcepub fn padding(self, padding: impl Into<EdgeInsetsGeometry>) -> TabBar
pub fn padding(self, padding: impl Into<EdgeInsetsGeometry>) -> TabBar
Dart TabBar(padding:).
Sourcepub fn indicator_color(self, indicator_color: Color) -> TabBar
pub fn indicator_color(self, indicator_color: Color) -> TabBar
Dart TabBar(indicatorColor:).
Sourcepub fn automatic_indicator_color_adjustment(
self,
automatic_indicator_color_adjustment: bool,
) -> TabBar
pub fn automatic_indicator_color_adjustment( self, automatic_indicator_color_adjustment: bool, ) -> TabBar
Dart TabBar(automaticIndicatorColorAdjustment:).
Sourcepub fn indicator_weight(self, indicator_weight: f64) -> TabBar
pub fn indicator_weight(self, indicator_weight: f64) -> TabBar
Dart TabBar(indicatorWeight:).
Sourcepub fn indicator_padding(
self,
indicator_padding: impl Into<EdgeInsetsGeometry>,
) -> TabBar
pub fn indicator_padding( self, indicator_padding: impl Into<EdgeInsetsGeometry>, ) -> TabBar
Dart TabBar(indicatorPadding:).
Sourcepub fn indicator(self, indicator: impl Into<DecorationRef>) -> TabBar
pub fn indicator(self, indicator: impl Into<DecorationRef>) -> TabBar
Dart TabBar(indicator:).
Sourcepub fn indicator_size(self, indicator_size: TabBarIndicatorSize) -> TabBar
pub fn indicator_size(self, indicator_size: TabBarIndicatorSize) -> TabBar
Dart TabBar(indicatorSize:).
Sourcepub fn divider_color(self, divider_color: Color) -> TabBar
pub fn divider_color(self, divider_color: Color) -> TabBar
Dart TabBar(dividerColor:).
Sourcepub fn divider_height(self, divider_height: f64) -> TabBar
pub fn divider_height(self, divider_height: f64) -> TabBar
Dart TabBar(dividerHeight:).
Sourcepub fn label_color(self, label_color: impl Into<AnyColor>) -> TabBar
pub fn label_color(self, label_color: impl Into<AnyColor>) -> TabBar
Dart TabBar(labelColor:).
Sourcepub fn label_style(self, label_style: TextStyle) -> TabBar
pub fn label_style(self, label_style: TextStyle) -> TabBar
Dart TabBar(labelStyle:).
Sourcepub fn label_padding(
self,
label_padding: impl Into<EdgeInsetsGeometry>,
) -> TabBar
pub fn label_padding( self, label_padding: impl Into<EdgeInsetsGeometry>, ) -> TabBar
Dart TabBar(labelPadding:).
Sourcepub fn unselected_label_color(self, unselected_label_color: Color) -> TabBar
pub fn unselected_label_color(self, unselected_label_color: Color) -> TabBar
Dart TabBar(unselectedLabelColor:).
Sourcepub fn unselected_label_style(self, unselected_label_style: TextStyle) -> TabBar
pub fn unselected_label_style(self, unselected_label_style: TextStyle) -> TabBar
Dart TabBar(unselectedLabelStyle:).
Sourcepub fn drag_start_behavior(
self,
drag_start_behavior: DragStartBehavior,
) -> TabBar
pub fn drag_start_behavior( self, drag_start_behavior: DragStartBehavior, ) -> TabBar
Dart TabBar(dragStartBehavior:).
Sourcepub fn overlay_color(
self,
overlay_color: WidgetStatePropertyRef<Option<Color>>,
) -> TabBar
pub fn overlay_color( self, overlay_color: WidgetStatePropertyRef<Option<Color>>, ) -> TabBar
Dart TabBar(overlayColor:).
Sourcepub fn mouse_cursor(self, mouse_cursor: impl Into<MouseCursorRef>) -> TabBar
pub fn mouse_cursor(self, mouse_cursor: impl Into<MouseCursorRef>) -> TabBar
Dart TabBar(mouseCursor:).
Sourcepub fn enable_feedback(self, enable_feedback: bool) -> TabBar
pub fn enable_feedback(self, enable_feedback: bool) -> TabBar
Dart TabBar(enableFeedback:).
Sourcepub fn on_hover(
self,
on_hover: impl Fn(&mut App, bool, usize) + 'static,
) -> TabBar
pub fn on_hover( self, on_hover: impl Fn(&mut App, bool, usize) + 'static, ) -> TabBar
Dart TabBar(onHover:).
Sourcepub fn on_focus_change(
self,
on_focus_change: impl Fn(&mut App, bool, usize) + 'static,
) -> TabBar
pub fn on_focus_change( self, on_focus_change: impl Fn(&mut App, bool, usize) + 'static, ) -> TabBar
Dart TabBar(onFocusChange:).
Sourcepub fn physics(self, physics: ScrollPhysicsRef) -> TabBar
pub fn physics(self, physics: ScrollPhysicsRef) -> TabBar
Dart TabBar(physics:).
Sourcepub fn splash_factory(
self,
splash_factory: InteractiveInkFeatureFactoryRef,
) -> TabBar
pub fn splash_factory( self, splash_factory: InteractiveInkFeatureFactoryRef, ) -> TabBar
Dart TabBar(splashFactory:).
Sourcepub fn splash_border_radius(self, splash_border_radius: BorderRadius) -> TabBar
pub fn splash_border_radius(self, splash_border_radius: BorderRadius) -> TabBar
Dart TabBar(splashBorderRadius:).
Sourcepub fn tab_alignment(self, tab_alignment: TabAlignment) -> TabBar
pub fn tab_alignment(self, tab_alignment: TabAlignment) -> TabBar
Dart TabBar(tabAlignment:).
Sourcepub fn text_scaler(self, text_scaler: TextScaler) -> TabBar
pub fn text_scaler(self, text_scaler: TextScaler) -> TabBar
Dart TabBar(textScaler:).
Sourcepub fn indicator_animation(
self,
indicator_animation: TabIndicatorAnimation,
) -> TabBar
pub fn indicator_animation( self, indicator_animation: TabIndicatorAnimation, ) -> TabBar
Dart TabBar(indicatorAnimation:).
Sourcepub fn tab_has_text_and_icon(&self) -> bool
pub fn tab_has_text_and_icon(&self) -> bool
Trait Implementations§
Source§impl PreferredSizeWidget for TabBar
impl PreferredSizeWidget for TabBar
Source§fn preferred_size(&self) -> AnySize
fn preferred_size(&self) -> AnySize
A size whose height depends on if the tabs have both icons and text.
AppBar uses this size to compute its own preferred size.
Source§impl StatefulWidget for TabBar
impl StatefulWidget for TabBar
Source§type State = TabBarState
type State = TabBarState
Source§fn as_preferred_size_widget(&self) -> Option<&dyn PreferredSizeWidget>
fn as_preferred_size_widget(&self) -> Option<&dyn PreferredSizeWidget>
Source§fn create_state(&self) -> TabBarState
fn create_state(&self) -> TabBarState
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 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 TabBar
impl !Send for TabBar
impl !Sync for TabBar
impl !UnwindSafe for TabBar
impl Forget for TabBar
impl Freeze for TabBarwhere
*const RcInner<dyn Key> is !null: Freeze,
PhantomData<RcInner<dyn Key>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<Rc<dyn Widget>>: Freeze,
NonZero<u32>: Freeze,
PhantomData<fn() -> TabController>: Freeze,
*const RcInner<Keep> is !null: Freeze,
PhantomData<RcInner<Keep>>: Freeze,
PhantomData<fn() -> TabBarScrollController>: Freeze,
*const RcInner<dyn Decoration> is !null: Freeze,
PhantomData<RcInner<dyn Decoration>>: Freeze,
&'static dyn ColorExtension: Freeze,
*const RcInner<dyn ColorExtension> is !null: Freeze,
PhantomData<RcInner<dyn ColorExtension>>: 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 WidgetStateProperty<Option<Color>>> is !null: Freeze,
PhantomData<RcInner<dyn WidgetStateProperty<Option<Color>>>>: Freeze,
*const RcInner<dyn MouseCursor> is !null: Freeze,
PhantomData<RcInner<dyn MouseCursor>>: Freeze,
*const RcInner<dyn Fn(&mut App, usize)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, usize)>>: Freeze,
*const RcInner<dyn Fn(&mut App, bool, usize)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, bool, usize)>>: Freeze,
*const RcInner<dyn ScrollPhysics> is !null: Freeze,
PhantomData<RcInner<dyn ScrollPhysics>>: Freeze,
*const RcInner<dyn InteractiveInkFeatureFactory> is !null: Freeze,
PhantomData<RcInner<dyn InteractiveInkFeatureFactory>>: Freeze,
*const TextScaler is !null: Freeze,
PhantomData<TextScaler>: Freeze,
impl Move for TabBar
impl Unpin for TabBarwhere
Rc<dyn Key>: Unpin,
*const u8 is !null: Unpin,
Rc<dyn Widget>: Unpin,
NonZero<u32>: Unpin,
Rc<Keep>: Unpin,
Rc<dyn Decoration>: Unpin,
&'static dyn ColorExtension: Unpin,
Rc<dyn ColorExtension>: Unpin,
Rc<Paint>: Unpin,
Rc<dyn WidgetStateProperty<Option<Color>>>: Unpin,
Rc<dyn MouseCursor>: Unpin,
Rc<dyn Fn(&mut App, usize)>: Unpin,
Rc<dyn Fn(&mut App, bool, usize)>: Unpin,
Rc<dyn ScrollPhysics>: Unpin,
Rc<dyn InteractiveInkFeatureFactory>: Unpin,
Box<TextScaler>: Unpin,
impl UnsafeUnpin for TabBarwhere
*const RcInner<dyn Key> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Key>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<Rc<dyn Widget>>: UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
PhantomData<fn() -> TabController>: UnsafeUnpin,
*const RcInner<Keep> is !null: UnsafeUnpin,
PhantomData<RcInner<Keep>>: UnsafeUnpin,
PhantomData<fn() -> TabBarScrollController>: UnsafeUnpin,
*const RcInner<dyn Decoration> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Decoration>>: UnsafeUnpin,
&'static dyn ColorExtension: UnsafeUnpin,
*const RcInner<dyn ColorExtension> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn ColorExtension>>: 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 WidgetStateProperty<Option<Color>>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn WidgetStateProperty<Option<Color>>>>: UnsafeUnpin,
*const RcInner<dyn MouseCursor> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn MouseCursor>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, usize)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, usize)>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, bool, usize)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, bool, usize)>>: UnsafeUnpin,
*const RcInner<dyn ScrollPhysics> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn ScrollPhysics>>: UnsafeUnpin,
*const RcInner<dyn InteractiveInkFeatureFactory> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn InteractiveInkFeatureFactory>>: UnsafeUnpin,
*const TextScaler is !null: UnsafeUnpin,
PhantomData<TextScaler>: 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.