accessibility_tools
3.0.0, released 2 months ago by rebelappstudio.com
Checkers and tools to verify accessibility and test app behavior during development.
WASM-readyUses material_ui
What it does
Checks your user interface as you build it for accessibility issues like missing semantic labels, small tap areas, and image labels. It also provides a testing tools panel with toggles for text scale, localization, text direction, and color mode simulations.
AI-written summary of version 3.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to ensure your Flutter app is accessible from day one during development.
- You need to test your app under various text scales, localizations, and platform settings.
Skip it when
- You are deploying to production builds (the tools only run in debug mode).
- You cannot meet the package's minimum Dart and Flutter version requirements.
Strengths
- Runs automatically in debug mode as you build your interface.
- Includes a comprehensive testing tools panel for simulations like color blindness and screen reader modes.
Weaknesses
- Requires migration and specific compatibility setup if using standalone material_ui packages.
- Font overflow checks are experimental and disabled by default.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 4
Add AccessibilityTools to your app's builder property in debug mode.
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
builder: (context, child) => AccessibilityTools(child: child),
home: HomePage(),
);
}
}Works with
Packages commonly used together with accessibility_tools: ones it builds on, ones built on it, and its own family.
- material_uiaccessibility_tools depends on itOfficial Flutter Material UI library implementing Google’s Material Design system.
- cupertino_uiaccessibility_tools depends on itOfficial Flutter Cupertino design library implementing Apple HIG iOS and macOS user interfaces.
- widgetbookBuilt on accessibility_toolsA sandbox for building and testing Flutter widgets and screens in isolation.