Infrastructure low complexity mobile
0
Dependencies
0
Dependents
1
Entities
0
Integrations

Description

Infrastructure utility that wraps Flutter chart widgets with WCAG 2.2 AA-compliant semantics - screen-reader labels, text alternatives for all data points, and enforced contrast ratios. Applied uniformly to every chart on the Statistics Dashboard to satisfy the mandatory accessibility requirement.

Feature: Personal Activity Statistics

statistics-chart-accessibility-adapter

Sources & reasoning

WCAG 2.2 AA is a hard MVP requirement covering all screens, and chart elements require explicit semantic annotations and contrast checks beyond what standard Flutter widgets provide out of the box.

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

Responsibilities

  • Inject Semantics widgets with descriptive labels around all chart elements
  • Provide text-alternative summaries for screen reader users (VoiceOver/TalkBack)
  • Verify contrast ratios meet WCAG 2.2 AA minimums for chart colours
  • Expose a reusable wrapper API for other statistics-adjacent screens

Interfaces

wrapWithSemantics(widget: Widget, label: String) → Widget
buildTextAlternative(data: ChartDataPoint) → String
assertContrast(foreground: Color, background: Color) → bool

Related Data Entities (1)

Data entities managed by this component