pub struct BottomNavigationBar { /* private fields */ }Expand description
The bar itself — a multi-destination leaf (paints its items directly,
the NavRail pattern).
Implementations§
pub fn new() -> Self
pub fn item(self, i: BottomNavItem) -> Self
pub fn height(self, h: f32) -> Self
Sourcepub fn background(self, c: Color) -> Self
pub fn background(self, c: Color) -> Self
Bar fill — defaults to the theme’s surface.
Sourcepub fn active_color(self, c: Color) -> Self
pub fn active_color(self, c: Color) -> Self
Selected label/icon tint — defaults to the theme’s primary.
Sourcepub fn inactive_color(self, c: Color) -> Self
pub fn inactive_color(self, c: Color) -> Self
Unselected tint — defaults to the theme’s on_surface dimmed.
pub fn radius(self, r: f32) -> Self
pub fn font_size(self, s: f32) -> Self
pub fn no_divider(self) -> Self
Sourcepub fn material(self, m: ShaderMaterial) -> Self
pub fn material(self, m: ShaderMaterial) -> Self
Per-instance shader material — replaces the bar fill when resolved.
Beats the theme’s BottomNavMaterial default (D124 Step 5).
Trait Implementations§
Source§fn layout(&self, ctx: &LayoutCtx<'_>) -> Size
fn layout(&self, ctx: &LayoutCtx<'_>) -> Size
Measure under
ctx.constraints and return a size within them. Read moreSource§fn children(&self) -> Children<'_>
fn children(&self) -> Children<'_>
Declare this widget’s children. Drives every default below.
Source§fn flex_factor(&self) -> f32
fn flex_factor(&self) -> f32
Flex weight inside Row/Column. Wrappers are transparent by default.
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more
Source§impl<W> FocusApi for W
impl<W> FocusApi for W
Source§fn focus_node(self, node: FocusNode) -> WithFocus<Self>
fn focus_node(self, node: FocusNode) -> WithFocus<Self>
Attach a focus node. This enables focus-ring rendering and explicit
neighbor wiring.