Forcing Focus on Widget When Using Talkback / VoiceOver

529 views
Skip to first unread message

Matthew Jones

unread,
Jan 17, 2020, 10:56:43 AM1/17/20
to Flutter Development (flutter-dev)
I'm trying to improve the accessibility of my app right now by testing it with Talkback / Voiceover.

My issue is that I have a widget that sits in a stack and takes over the whole screen. It's controlled by a streambuilder and is activated when a user taps a particular button.

Here's the problem, when that new widget appears at the top of the stack, Talkback / Voiceover stays focused on the widgets underneath.

How can I force Talkback / Voiceover to focus on the new widget at the top of the stack?

Thanks!

Matheus Rocco Ferreira

unread,
Dec 2, 2020, 1:38:22 PM12/2/20
to Flutter Development (flutter-dev)
Hey Matthew, from this SO post I believe this is not possible in Flutter, even though there's an API for that in Android. But, hopefully you can use a BlockSemantics to get the focus to the topmost widget on your screen, you only have to wrap it in a BlockSemantics widget. Hope this can be helpful 
Reply all
Reply to author
Forward
0 new messages