radar_ui library
Flutter Radar shared design system.
Import this library to access all tokens (colors, typography, density, severity, origin) and reusable widgets (tags, origin and triage chips, banners, module dots, sparklines, metric tiles, search fields, sort headers, filter chips, live pulse dot) for the Flutter Radar suite.
Classes
- ChartMark
- A labeled vertical checkpoint drawn across the plot (e.g. a GC, a route push, a native module load).
- ChartSeries
- One plotted line in a RadarTimeSeriesChart.
- ChartWindow
- A shaded time window drawn behind the series (e.g. a settle window during which growth is expected and not yet assessed).
- OriginChip
- A compact ownership pill for a RadarOrigin.
- OriginTokens
- Static RadarOrigin color/label lookup for call sites that only have the enum value in hand (e.g. the native module palette).
- RadarBanner
- A full-width, severity-tinted notice banner.
- RadarColors
- Complete dark-mode color palette for the Flutter Radar design system.
- RadarDensity
- Spacing, sizing, and radius constants for the Flutter Radar design system.
- RadarExpandableRow
- A tappable header row that expands to reveal child.
- RadarFilterChip
- A quick-filter chip for Radar list views.
- RadarLinearProgress
- An indeterminate left-to-right sweep bar — the "analyzing…" affordance for long background work (e.g. parsing a large heap dump).
- RadarLivePulseDot
- A slow pulsing dot indicating "live" or "connected" state.
- RadarMetricTile
- A label + big-value display tile for the Flutter Radar design system.
- RadarModuleDot
- A small rounded-square color swatch for a category/module.
- RadarSearchField
- A mono-font text field for filtering/searching Radar list views.
- RadarSortHeader
- A tappable column-header label that indicates sort state.
- RadarSparkline
- A miniature line chart for displaying a metric series inline.
- RadarStackFrame
- A single line in a RadarStackList: a call-stack frame.
- RadarStackList
- A native/dart call stack rendered as a code block.
- RadarTag
- A compact severity or kind pill for the Flutter Radar design system.
- RadarTimeSeriesChart
- A dark-only multi-series time chart for the Radar suite.
- RadarTrendChart
- A full-size trend chart: a stroked line, a translucent filled area beneath it, and a circular marker at each point. Used for plotting a class's instance/byte count across N heap dumps over time (the soak-test view).
- RadarTypography
- Pre-built TextStyle constants for common Radar text roles.
- SeverityTokens
- Per-severity derived design tokens.
- TriageChip
- A compact cross-session status pill (NEW / KNOWN / ACK / GONE).
Enums
- RadarOrigin
- Ownership buckets for an attributed leak class.
- RadarSeverity
- The four severity levels used across all Radar surfaces.
- RadarSortDirection
- Sort direction for a RadarSortHeader.
- TriageDisplay
- Display-only cross-session identity for a leak cluster/row.
Extensions
- RadarOriginX on RadarOrigin
- Per-RadarOrigin color and label lookup.
- RadarSeverityX on RadarSeverity
- Convenience extensions on RadarSeverity.
Functions
-
radarBodyStyle(
{double? fontSize, FontWeight? fontWeight, Color? color, double? height}) → TextStyle - Returns a Hanken Grotesk TextStyle (body and labels).
-
radarDarkTheme(
) → ThemeData - Returns a ThemeData wired to the Flutter Radar dark design system.
-
radarDisplayStyle(
{double? fontSize, FontWeight? fontWeight, Color? color, double? height}) → TextStyle - Returns a Space Grotesk TextStyle (headlines and big metric values).
-
radarMonoStyle(
{double? fontSize, FontWeight? fontWeight, Color? color, double? height, double? letterSpacing}) → TextStyle - Returns a JetBrains Mono TextStyle with tabular figures enabled.
-
radarSeverityColor(
RadarSeverity severity) → Color -
Returns the primary foreground Color for the given
severity.