pub struct TabPageSelector {
pub key: Option<KeyRef>,
pub controller: Option<Ref<TabController>>,
pub indicator_size: f64,
pub color: Option<Color>,
pub selected_color: Option<Color>,
pub border_style: Option<BorderStyle>,
}Expand description
Uses TabPageSelectorIndicator to display a row of small circular
indicators, one per tab.
The selected tab’s indicator is highlighted. Often used in conjunction with
a TabBarView.
If a TabController is not provided, then there must be a
DefaultTabController ancestor.
Fields§
§key: Option<KeyRef>§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.
indicator_size: f64The indicator circle’s diameter (the default value is 12.0).
color: Option<Color>The indicator circle’s fill color for unselected pages.
If this parameter is null, then the indicator is filled with Colors::TRANSPARENT.
selected_color: Option<Color>The indicator circle’s fill color for selected pages and border color for all indicator circles.
If this parameter is null, then the indicator is filled with the theme’s
ColorScheme::secondary.
border_style: Option<BorderStyle>The indicator circle’s border style.
Defaults to BorderStyle::Solid if value is not specified.
Implementations§
Source§impl TabPageSelector
impl TabPageSelector
Sourcepub fn new() -> TabPageSelector
pub fn new() -> TabPageSelector
Creates a compact widget that indicates which tab has been selected; Dart’s named arguments are the setters.
Sourcepub fn key(self, key: KeyRef) -> TabPageSelector
pub fn key(self, key: KeyRef) -> TabPageSelector
Dart TabPageSelector(key:).
Sourcepub fn controller(self, controller: Ref<TabController>) -> TabPageSelector
pub fn controller(self, controller: Ref<TabController>) -> TabPageSelector
Dart TabPageSelector(controller:).
Sourcepub fn indicator_size(self, indicator_size: f64) -> TabPageSelector
pub fn indicator_size(self, indicator_size: f64) -> TabPageSelector
Dart TabPageSelector(indicatorSize:).
Sourcepub fn color(self, color: Color) -> TabPageSelector
pub fn color(self, color: Color) -> TabPageSelector
Dart TabPageSelector(color:).
Sourcepub fn selected_color(self, selected_color: Color) -> TabPageSelector
pub fn selected_color(self, selected_color: Color) -> TabPageSelector
Dart TabPageSelector(selectedColor:).
Sourcepub fn border_style(self, border_style: BorderStyle) -> TabPageSelector
pub fn border_style(self, border_style: BorderStyle) -> TabPageSelector
Dart TabPageSelector(borderStyle:).
Trait Implementations§
Source§impl Debug for TabPageSelector
impl Debug for TabPageSelector
Source§impl Default for TabPageSelector
impl Default for TabPageSelector
Source§fn default() -> TabPageSelector
fn default() -> TabPageSelector
Source§impl StatefulWidget for TabPageSelector
impl StatefulWidget for TabPageSelector
Source§type State = TabPageSelectorState
type State = TabPageSelectorState
Source§fn create_state(&self) -> TabPageSelectorState
fn create_state(&self) -> TabPageSelectorState
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 TabPageSelector
impl !Send for TabPageSelector
impl !Sync for TabPageSelector
impl !UnwindSafe for TabPageSelector
impl Forget for TabPageSelector
impl Freeze for TabPageSelectorwhere
*const RcInner<dyn Key> is !null: Freeze,
PhantomData<RcInner<dyn Key>>: Freeze,
NonZero<u32>: Freeze,
PhantomData<fn() -> TabController>: Freeze,
*const RcInner<Keep> is !null: Freeze,
PhantomData<RcInner<Keep>>: Freeze,
impl Move for TabPageSelector
impl Unpin for TabPageSelector
impl UnsafeUnpin for TabPageSelectorwhere
*const RcInner<dyn Key> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Key>>: UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
PhantomData<fn() -> TabController>: UnsafeUnpin,
*const RcInner<Keep> is !null: UnsafeUnpin,
PhantomData<RcInner<Keep>>: 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.