Skip to content

Semantics announcement not read on Desktop #113059

@yaakovschectman

Description

@yaakovschectman

In the following code example, an announcement should be read, but none is heard.

Reproduce:

  1. Run the below code example on Windows or MacOS with a screen reader running (NVDA, etc.),
  2. 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

Labels

P1High-priority issues at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)a: desktopRunning on desktopplatform-macBuilding on or for macOS specificallyplatform-windowsBuilding on or for Windows specifically

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions