pub struct TopAppBarConfig {
pub modifier: Modifier,
pub colors: TopAppBarColors,
pub height: f32,
pub scroll_fraction: f32,
pub scroll_offset: f32,
pub scroll_behavior: Option<Rc<TopAppBarScrollBehavior>>,
pub window_insets: WindowInsets,
pub content_padding: PaddingValues,
}Expand description
Configuration for TopAppBar.
Fields§
§modifier: Modifier§colors: TopAppBarColors§height: f32§scroll_fraction: f32Collapse progress in 0.0..=1.0 driving the container color lerp.
Ignored when scroll_behavior is set.
scroll_offset: f32Vertical translate offset (negative = collapsed upward).
Ignored when scroll_behavior is set.
scroll_behavior: Option<Rc<TopAppBarScrollBehavior>>Optional shared scroll behavior. When set, the bar reads
TopAppBarScrollBehavior::offset and
TopAppBarScrollBehavior::collapsed_fraction reactively itself,
so translate and container color stay in sync without manual wiring.
window_insets: WindowInsets§content_padding: PaddingValuesTrait Implementations§
Source§impl Clone for TopAppBarConfig
impl Clone for TopAppBarConfig
Source§fn clone(&self) -> TopAppBarConfig
fn clone(&self) -> TopAppBarConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TopAppBarConfig
impl Debug for TopAppBarConfig
Auto Trait Implementations§
impl !RefUnwindSafe for TopAppBarConfig
impl !Send for TopAppBarConfig
impl !Sync for TopAppBarConfig
impl !UnwindSafe for TopAppBarConfig
impl Freeze for TopAppBarConfig
impl Unpin for TopAppBarConfig
impl UnsafeUnpin for TopAppBarConfig
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