Use case
Just use the Semantics widget with the header property.
Since the Flutter 3.38.0 update, TalkBack on Android no longer recognizes the header when only header: true is set.
This does not work on Android:
Semantics(
header: true,
child: Text(title),
),
This does work on Android:
Semantics(
header: true,
headingLevel: 1,
child: Text(title),
),
On iOS, both variants are detected as a header by the screen reader.
Proposal
When you provide the header property in the Semantics widget, it should also work on Android.
It’s quite strange that it only works on iOS, while on Android I have to additionally use headingLevel for it to be recognized correctly.
This PR attempted to fix the issue but was closed:
#179681
Could you clarify why it was closed?
Use case
Just use the
Semanticswidget with theheaderproperty.Since the Flutter 3.38.0 update, TalkBack on Android no longer recognizes the header when only
header: trueis set.This does not work on Android:
This does work on Android:
On iOS, both variants are detected as a header by the screen reader.
Proposal
When you provide the
headerproperty in theSemanticswidget, it should also work on Android.It’s quite strange that it only works on iOS, while on Android I have to additionally use
headingLevelfor it to be recognized correctly.This PR attempted to fix the issue but was closed:
#179681
Could you clarify why it was closed?