User Interface medium complexity mobile
2
Dependencies
0
Dependents
1
Entities
0
Integrations

Description

Flutter screen displaying a peer mentor's personal activity statistics including counts by type, total hours, and monthly trend charts. Renders cached aggregates from Drift when offline and refreshes on next successful sync. All chart elements comply with WCAG 2.2 AA: text alternatives, sufficient contrast ratios, and screen-reader labels.

Feature: Personal Activity Statistics

statistics-dashboard-screen

Sources & reasoning

Flutter UI screen required to present aggregated statistics to the peer mentor. WCAG 2.2 AA compliance is mandatory from MVP; offline-first rendering from Drift is required because peer mentors may operate without connectivity.

No source references — this artifact was included based on reasoning alone (see above).

Responsibilities

  • Render activity count by type, total hours, and monthly trend visualisations
  • Display offline-cached aggregates from Drift when network is unavailable
  • Apply WCAG 2.2 AA accessible labels and contrast to all chart elements
  • Trigger aggregate refresh via Riverpod provider on mount and pull-to-refresh

Interfaces

build(BuildContext) → Widget
onRefresh() → Future<void>
renderCharts(StatisticsSummary) → List<Widget>

Relationships

Dependencies (2)

Components this component depends on

Related Data Entities (1)

Data entities managed by this component