Steps to reproduce
- Create a text view, marked as header:
Semantics(
header: true,
child: Text('Descriptive header')
);
- Install on Android device
- Navigate to the text view using TalkBack
This commit: 59d8010 has changed the logic for setting the isHeading property.
result.setHeading(semanticsNode.hasFlag(Flag.IS_HEADER)); was replaced by result.setHeading(semanticsNode.headingLevel > 0); without a fallback.
Expected behavior would be to set isHeading to true if Flag.IS_HEADER OR headingLevel > 0.
Expected results
TalkBack should announce the text view as header.
Actual results
TalkBack does not announce is header.
Code sample
Semantics(
header: true,
child: Text('Descriptive header')
);
Screenshots or Video
The isHeading property is false in the accessibility tree.
Logs
N/A
Flutter Doctor output
N/A
Steps to reproduce
This commit: 59d8010 has changed the logic for setting the
isHeadingproperty.result.setHeading(semanticsNode.hasFlag(Flag.IS_HEADER));was replaced byresult.setHeading(semanticsNode.headingLevel > 0);without a fallback.Expected behavior would be to set
isHeadingto true ifFlag.IS_HEADERORheadingLevel > 0.Expected results
TalkBack should announce the text view as header.
Actual results
TalkBack does not announce is header.
Code sample
Screenshots or Video
The
isHeadingproperty is false in the accessibility tree.Logs
N/A
Flutter Doctor output
N/A