stark-accessibility-flutter
Stark's accessibility linting tool for Flutter projects. This package provides custom lint rules to identify and report common accessibility issues in Dart/Flutter code, helping developers build more inclusive applications.
End User Setup
1. Add Dependencies
Add to your pubspec.yaml:
dev_dependencies:
custom_lint: ^0.8.1
stark_accessibility_lint: ^1.0.0
2. Enable Custom Lint
Create or update analysis_options.yaml:
analyzer:
plugins:
- custom_lint
3. Run the Linter
In your IDE (VS Code, Android Studio, IntelliJ), the linter will automatically run and show issues inline.
CLI Reporter
Upload accessibility scan results to your Stark dashboard.
Usage
# From your Flutter project directory
dart run stark_accessibility_lint:reporter --stark-token YOUR_TOKEN
# With custom scan name
dart run stark_accessibility_lint:reporter --stark-token YOUR_TOKEN --name "My Flutter App"
Options
--stark-token(required) - Your Stark API token for authentication--name(optional) - Custom name for the scan (defaults to current directory name)
Support
For support, please reach out to support@getstark.co or visit https://www.getstark.co/support/