Screen Reader Annotation Service
Component Detail
Service Layer
medium complexity
mobile
1
Dependencies
2
Dependents
1
Entities
0
Integrations
Description
Dart service layer that manages Flutter Semantics configuration for sensitive fields across the app. It builds and injects the correct Semantics node ordering so that warning announcements always precede sensitive content, and exposes utilities for tagging fields with accessibility metadata according to the canonical sensitive field type registry.
screen-reader-annotation-service
Responsibilities
- Build Semantics node trees that place warning announcements before sensitive field content
- Provide SemanticsService.announce() calls for programmatic screen reader announcements
- Expose a field-type tagging API used by SensitiveFieldWrapper to apply semantic labels
- Monitor MediaQueryData.accessibleNavigation to enable or bypass annotation logic when no screen reader is present
Interfaces
announceSensitiveFieldWarning(SensitiveFieldType type) → Future<void>
buildSensitiveSemantics({required SensitiveFieldType type, required String label}) → SemanticsProperties
isAssistiveTechnologyActive(BuildContext context) → bool
registerSensitiveFieldType(SensitiveFieldType type, String warningMessage)
Relationships
Dependents (2)
Components that depend on this component