A static analysis linter that helps developers create accessible Dart and Flutter applications by enforcing best practices for accessibility.
- Avoid Icon Button Without Tooltip: Ensures all
IconButton
widgets have atooltip
property. - Add Haptic Feedback on User Interaction: Ensures all interactive widgets have haptic feedback.
- Avoid Icon Without Semantic Label: Ensures all
Icon
widgets have asemanticLabel
property. - Avoid Image Without Semantic Label: Ensures all
Image
widgets have asemanticLabel
property. - Avoid Small Interactive Elements: Ensures all interactive elements are large enough to be easily tapped.
To add the accessibility linter to your project, run:
flutter pub add --dev custom_lint accessibility_lint
Then, add in your analysis_options.yaml
file:
analyzer:
plugins:
- custom_lint
To run the accessibility linter, run:
dart run custom_lint
This project is licensed under the Apache License 2.0 License - see the LICENSE file for details.