Package-level declarations
Types
How far an app bar has slid away, for HideOnScrollTopBar. Attach nestedScrollConnection to the scaffold after the bar's own scroll behaviour, so a large bar collapses first and only then slides away; scrolling back up brings it back at once, as Material's enter-always bars do.
A search field for ShellTopAppBar's title slot.
Properties
The part of a screen the shell draws over: the system navigation bar, and on a tab the bottom navigation bar, the banner and the docked mini player.
Whether app bars slide away as content scrolls down, whatever their style. The shell provides it from its settings; PageScaffold and the shell's tab scaffold read it.
The snackbar host of the page frame a screen is drawn in, or null outside one.
A style that replaces every destination's own, set from the developer options to try one bar across the whole app. Null keeps each destination's.
How far the app bar above is tinted by the content scrolled under it, provided by PageScaffold and the shell's tabs. Null outside them, under a bar that does not react to scrolling, and where the bar is see-through over a tinted frame.
Functions
LocalContentPadding plus extra, for the content padding of a scrolling container.
Centres content in a column no wider than maxWidth, leaving equal margins on both sides once the space is wider, the way a website lays out its page. Dp.Unspecified fills the space.
Uses a small bar while an article bar is declared. A large bar would show a second, expanded title above the article's own header.
How far the navigation's shared colour should follow this bar, the way Material tints the bar itself: a large bar blends as it collapses, the others switch once content scrolls under them. Read it inside FollowScrollWithFrameTint.
The placeholder for an app's own list pages.
The frame of a page: an app bar with a back button, and a body under it.
What the detail side of a list page shows before anything is chosen: an icon, a title, a hint.
Two paddings added side by side, resolved against the layout direction when used.
The page frame's snackbar host, or a new one remembered here for a screen outside a page.
Returns the scroll behaviour that suits style: large bars collapse until the content is back at the top, the others stay pinned and only change colour. A TopBarStyle.LargeCollapsed bar starts collapsed, once, and keeps whatever the person scrolls it to after that.
Moves the bar back to where a newly opened destination starts: fully expanded, or fully collapsed once the bar has measured how far it can collapse.
Draws style. Draws nothing for TopBarStyle.Hidden.
The colour the app bar above is drawn in right now, for what sits flush under it, such as a tab row, so the bar and the tabs read as one surface and change colour together as content scrolls under them:
The insets an app bar keeps clear of: the status bar and any display cutout, on the top and on the sides the bar reaches. A bar beside a rail or drawer only reaches the end side.
Splits a scaffold's padding into what the frame applies itself, its top and sides, and the bottom, which the content receives through LocalContentPadding so it can scroll behind it.