camouflage_skin_testing 0.2.0
camouflage_skin_testing: ^0.2.0 copied to clipboard
Test-only checks for any Camouflage skin: renderers apply behavior, and no literals.
Example #
import 'package:camouflage_skin_testing/camouflage_skin_testing.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
testWidgets('my skin keeps the buttons accessible', (tester) async {
await expectAccessibleScreen(
tester,
skin: mySkin,
theme: myTheme,
child: const ButtonGallery(),
textScale: 2,
);
});
}
Every Camouflage skin package runs these checks in its own tests: see the *_accessibility_test.dart files in the repository.