BesideNavigation

class BesideNavigation(val tinted: Boolean, val scrollTint: FrameScrollTint? = null, val frameColor: () -> Color)(source)

Set by the shell while its pages open beside a rail or a permanent drawer.

The page the navigation opened stands in for a tab there, so it is drawn like one: no back button (the navigation beside it is the way out), the tab's small app bar, and, when the navigation and the app bar share a colour, the same frame colour behind the bar and the content in a card.

Parameters

tinted

Whether the navigation and the app bar share frameColor; the content then sits in a card of ContentCardShape.

scrollTint

Set while the shared colour follows scrolling: where the app bars beside the navigation say how far to take it. Null while the colour is fixed.

frameColor

The colour behind the navigation right now, which may be animating. Last, so it can be passed as a trailing lambda.

Constructors

Link copied to clipboard
constructor(tinted: Boolean, scrollTint: FrameScrollTint? = null, frameColor: () -> Color)

Properties

Link copied to clipboard
val frameColor: () -> Color
Link copied to clipboard
Link copied to clipboard