attest_flutter 1.0.0 copy "attest_flutter: ^1.0.0" to clipboard
attest_flutter: ^1.0.0 copied to clipboard

Flutter widget-test integration for attest: a WidgetTester accessibility audit, raster and text-scale collectors, and gate matchers for CI.

example/example.md

Example #

Audit a pumped screen inside an ordinary widget test:

import 'package:flutter_test/flutter_test.dart';
import 'package:attest_flutter/attest_flutter.dart';

void main() {
  testWidgets('CheckoutScreen is accessible', (tester) async {
    await tester.pumpWidget(const MyApp(home: CheckoutScreen()));

    final report = await tester.auditAccessibility();

    expect(report, passesAccessibilityGate());
  });
}

When the gate fails, the matcher prints a grouped, criterion-tagged, source- located summary — one entry per finding, each citing its WCAG success criterion and EN 301 549 clause, with a concrete fix suggestion.

A full, runnable dogfood app with one broken screen per rule lives in the example/ directory at the repository root.

1
likes
160
points
0
downloads

Documentation

API reference

Publisher

verified publishersahland.tech

Weekly Downloads

Flutter widget-test integration for attest: a WidgetTester accessibility audit, raster and text-scale collectors, and gate matchers for CI.

Repository (GitHub)
View/report issues
Contributing

Topics

#accessibility #a11y #wcag #testing

License

BSD-3-Clause (license)

Dependencies

attest, flutter, flutter_test, meta

More

Packages that depend on attest_flutter