because of a frustrating odilia bug that had me scrapping an entire branch pending redue from scratch tomorrow, I decided to do something not in rust at all, then I remembered the flutter accessibility things on windows since linux is not usable enough yet, so I decided to try it.
I see focus is working, even if I apply it to a label or some other controll like that, so that's not a problem.
however, can someone verify that live regions actually don't work on desktop, at least not with nvda?
if it's of some help, here's a fragment from the build method of the code I tryed it with, kinda the starter application, just a bit modified to illustrate my point.
if the code seemns too nested and weird, it's either because I just wanted to see if it'd work and I did no refactoring before posting, or because vscode is scruing itself and decides the norm today is two spaces in stead of four per indentation level, or actually both. Either way, here goes
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: Center(
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Semantics(
child: Focus(
child: Text(
'You have pushed the button $_counter times',
style: Theme.of(context).textTheme.headline4,
),
),
liveRegion: true,
),
],
),
),
floatingActionButton: FloatingActionButton(
onPressed: _incrementCounter,
tooltip: 'Increment',
child: const Icon(Icons.add),
style: ButtonStyle(
shape: MaterialStateProperty.all<RoundedRectangleBorder>(
RoundedRectangleBorder(
borderRadius: BorderRadius.circular(18.0),
side: BorderSide(
color: Colors
.black))))), // This trailing comma makes auto-formatting nicer for build methods.
);
So, focus works, however live regions don't work on windows at all. I mean, one could do so that the function that updates the live region would also speak it with tts, but anyway, am I doing something wrong here, or it is just how it is for now? if it's not normal, I'm ready to open an issue and we'll see what comes of it. Anyone has any insight? how is the live region stuff usually handled in the desktop realm?