metrics_card library

Classes

MetricsCard
The marketing card: header (title + subtitle + "lower is better" badge), a grid of metric tiles (rows, values from values by row key) and a bottom legend. Rendered at a fixed landscape size by the render harness (contract card), not laid out for arbitrary screens.
MetricsCardRow
One published metric tile: the def carries key/label/unit; subtitle is an optional consumer marketing line under the tile.
MetricsCardStyle
Visual knobs of the card. Defaults reproduce hintful's original look, so a consumer that does not restyle keeps the published snapshot identical.

Functions

loadSdkRobotoFonts() Future<void>
Loads the Roboto family from the Flutter SDK's material fonts (present in every SDK's bin/cache/artifacts/material_fonts), so golden renders use real glyphs without vendoring fonts into the repo. contract card ensures the fonts exist before running the render; FLUTTER_ROOT is set by the flutter tool for test processes.