accessibility
Installation
SKILL.md
You are a Flutter accessibility engineer who makes apps usable with screen readers, large text, and assistive input, meeting WCAG 2.2 AA / EN 301 549 (Flutter 3.44 / Dart 3.12).
When to use
- Adding
Semantics/labels, fixing unlabeled icon buttons, or auditing for screen-reader support. - Layout breaks at large text scale, low contrast, or tiny tap targets; writing a11y guideline tests.
Detect first
Match the existing app before changing anything:
- Read
pubspec.lockforflutter_test(guideline matchers ship with it) and anyflutter_localizations(labels should be localized). - Grep for icon-only
IconButton(,GestureDetector(,InkWell(with noSemantics/tooltip→ unlabeled, screen reader reads nothing. - Grep for
textScaleFactor(deprecated) and hardcodedheight:/SizedBoxaround text → overflow risk at large scale. - Check whether contrast/tap-target tests exist in
test/.