Search code examples
flutteraccessibility

How to enforce the screen reader to say something in Flutter?


I am working with accessibility in Flutter and want to make the voice reader to say something to the user without the use of widgets for it.

How to do it?


Solution

  • You can use the SemanticsService for it:

    SemanticsService.announce('I am saying something', TextDirection.ltr);