chrome_style library

Per-family Material chrome: the settings, history, dialogs and sheets around the calculator take their family's type, shapes, edges and surfaces, not just its colours.

Derived from the theme's family alone (plus the colours it already resolved), never from new generator draws, so a theme's seed still produces exactly the same keypad: familyChrome can change in any release without an engine bump.

The Accessible lock and the plain theme get no chrome style (chromeStyleFor returns null): their chrome stays stock Material 3.

Classes

ChromeStyle
One family's chrome recipe. Fonts come from the theme: headings, titles and labels use its key font; body text uses bodyFont (null = the key font too).

Enums

ChromeCorner
How container and control corners are cut.
ChromeEdge
The colour of a family's edges (borders, rules, hard shadows).

Constants

familyChrome → const Map<ThemeFamily, ChromeStyle>
The chrome recipe of every enabled family. Families missing here (plain, the disabled placeholders) get stock Material 3.

Functions

chromeStyleFor(ThemeSpec spec) → ChromeStyle?
The chrome recipe of spec: its family's, or null (stock Material 3) for the plain theme and under the Accessible lock.