-
-
Notifications
You must be signed in to change notification settings - Fork 283
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Use case
When HTML contains links, then they should have button (or link) semantics so screen readers announce them correctly and Voice Control has item labels. This can currently be achieved via custom factoryBuilder.
Proposal
I think this should be a standard behavior: wrapping MouseRegion with Semantics(button: true) or similar.
flutter_widget_from_html/packages/core/lib/src/core_widget_factory.dart
Lines 261 to 276 in a564ad8
| Widget? buildGestureDetector( | |
| BuildTree tree, | |
| Widget child, | |
| GestureRecognizer recognizer, | |
| ) { | |
| var built = child; | |
| if (recognizer is TapGestureRecognizer) { | |
| built = MouseRegion( | |
| cursor: SystemMouseCursors.click, | |
| child: GestureDetector(onTap: recognizer.onTap, child: child), | |
| ); | |
| } | |
| return built; | |
| } |
Cyrille37
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request