Package-level declarations
Types
Where a screen declares an article app bar: the scaffold around the screen holds one and draws what the screen puts in it. Until a screen calls ScaffoldArticleTopBar, the bar is the one the destination registered.
Set by the shell while its pages open beside a rail or a permanent drawer.
The app bars beside the navigation that follow scrolling, in the order they appeared: the one on top decides the frame's colour. The shell's tabs sit underneath, so a page the navigation opens takes over while it is shown and hands back to the tab when it leaves.
The layout the shell is currently drawing, and the window it is drawing it for.
How the shell presents its navigation.
The window widths at which ShellLayoutMode.Auto moves to the next mode, and at which list and detail pages start sharing the window, with an opt-in to hide a single tab's bottom bar. The default widths are Material's window size class breakpoints: medium at 600dp, expanded at 840dp and large at 1200dp.
Properties
The corner the content card takes beside a tinted rail or drawer, under the app bar.
The ArticleTopBarHost of the scaffold around this point of the composition: a page's frame, a tab screen's entry, or one pane of a list and its detail. Null outside them.
The shell's pages open beside the navigation; null when they cover the window.
Set by the shell around the destinations it shows beside a rail or a permanent drawer: the scope their app bar titles share. Null elsewhere.
How thick the reading progress line is.
Functions
The reading progress line of an article bar, to place along the bar's bottom edge over it, so the bar keeps its height. It shows while the bar shows the article's title and fills from the start edge, the right one in a right-to-left layout.
The title of an article bar: nothing until the article's header has scrolled away, then the host's brand, if any, and its title on one line, rising and fading in at the shell's animation speed. The bar it sits in keeps its size either way.
The modifier for the title of an app bar that stands in for the tab's beside the navigation: the tabs' own bar, and the bar of the page the navigation opened. When one such destination replaces another in place, the old title grows or shrinks into the new one, as a title changing inside one bar does, instead of the new bar's title appearing at its own size.
Lets this app bar drive the shared colour of the navigation beside it, while the person's settings have it follow scrolling, for as long as the bar is composed. It does nothing anywhere else.
Whether key is the page the navigation beside it opened, which stands in for a tab: the first page over the shell while pages open beside a rail or permanent drawer. Pages opened from it stack above and keep their back button.
How far this scroll has gone through its content, from 0 at the top to 1 at the end, for ScaffoldArticleTopBar. Content that fits without scrolling reads as read.
How far this list has scrolled through its items, from 0 at the top to 1 at the end, for ScaffoldArticleTopBar. It counts items, so it is exact for rows of one height and an estimate otherwise; it reads 1 once the list cannot scroll further.
Turns the app bar of the scaffold around this screen into an article bar, as news apps draw over a story: at first only the navigation and actions; once compact, the title after an optional brand; and, with progress, a thin line along the bar's bottom edge showing how much has been read. It follows the screen's state, since this is called from the screen, and leaves with it.