Move accessibility focus programmatically
In short, no, there currently is no method that allows you to move the accessibility focus through code.
Referring to the disclaimer mention at https://stackoverflow.com/a/28481095/6668797 as some background (even though Android still allows us to do this..)
DISCLAIMER: Forcing focus on Activity load to be anywhere but at the top bar is always (okay, always should almost never be said), but really, just don't do it. It is a violation of all sorts of WCAG 2.0 regulations, including 3.2.1 and 3.2.3, regarding predictable navigation and context changes respectively. You are, likely, actually making your app MORE inaccessible by doing this.
http://www.w3.org/TR/WCAG20/#consistent-behavior
The Dart team currently stands steadfast behind that rule, so it just hasn't been a priority to add this feature.
If you really wish to notify the user that a different page is now visible, you can use SemanticsService.announce() to inform the user after some action. For example, set this in onPageChanged
,
onPageChanged: (int page) {
// announce new page
}