Skip to main content

flutter_a11y_check 0.1.1 copy "flutter_a11y_check: ^0.1.1" to clipboard
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-in focus-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; failOn threshold.
  • Example app with an inaccessible screen and its fixed twin.
0
likes
160
points
67
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

One-line accessibility audit for Flutter widget tests: tap targets, labels, contrast, images, 200% text, duplicate labels and focus order, in a readable report.

Repository (GitHub)
View/report issues

Topics

#accessibility #a11y #testing #widget-test #wcag

License

MIT (license)

Dependencies

flutter, flutter_test

More

Packages that depend on flutter_a11y_check