flutter_a11y_check 0.1.1
flutter_a11y_check: ^0.1.1 copied to clipboard
One-line accessibility audit for Flutter widget tests: tap targets, labels, contrast, images, 200% text, duplicate labels and focus order, in a readable report.
Changelog #
0.1.1 #
- English README (Arabic version moved to README.ar.md)
- Shorter package description
0.1.0 #
First release.
expectAccessible(tester)fails a widget test with a full, readable report;auditAccessibility(tester)returns the report without failing.- Rules:
tap-target,missing-label,contrast,image-label,text-scale,duplicate-label,generic-label, and opt-infocus-order. - Every finding has a severity, rule id, message, fix suggestion, widget type, ancestor path and on-screen rect.
- Runs at several text scales (
textScales, default 100% and 200%) and in extra locales (locales,rtl: true); the same problem is reported once. - Reports as colored console text, Markdown or JSON.
- Ignores per rule, finder, key or label; severity overrides;
failOnthreshold. - Example app with an inaccessible screen and its fixed twin.