-
Notifications
You must be signed in to change notification settings - Fork 29.2k
Closed
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)Accessibility, e.g. VoiceOver or TalkBack. (aka a11y)a: desktopRunning on desktopRunning on desktopplatform-macBuilding on or for macOS specificallyBuilding on or for macOS specificallyplatform-windowsBuilding on or for Windows specificallyBuilding on or for Windows specifically
Description
In the following code example, an announcement should be read, but none is heard.
Reproduce:
- Run the below code example on Windows or MacOS with a screen reader running (NVDA, etc.),
- Press the button.
Expected result:
- The announcement is read by the screen reader.
Actual result:
- No announcement is read.
Code sample
import 'package:flutter/material.dart';
import 'package:flutter/semantics.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Code Sample',
home: Scaffold(
body: IconButton(
icon: const Icon(Icons.settings),
tooltip: 'This is a tooltip',
onPressed: () {
SemanticsService.announce(
'This is an announcement',
TextDirection.ltr,
);
},
),
),
);
}
}
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)Accessibility, e.g. VoiceOver or TalkBack. (aka a11y)a: desktopRunning on desktopRunning on desktopplatform-macBuilding on or for macOS specificallyBuilding on or for macOS specificallyplatform-windowsBuilding on or for Windows specificallyBuilding on or for Windows specifically
Type
Projects
Status
Done