Unverified Commit a6d68ee6 authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

remove Header flag from BottomNavigationBar items (#37870)

parent 218b1133
...@@ -473,7 +473,6 @@ class _BottomNavigationTile extends StatelessWidget { ...@@ -473,7 +473,6 @@ class _BottomNavigationTile extends StatelessWidget {
flex: size, flex: size,
child: Semantics( child: Semantics(
container: true, container: true,
header: true,
selected: selected, selected: selected,
child: Focus( child: Focus(
child: Stack( child: Stack(
......
...@@ -1192,24 +1192,17 @@ void main() { ...@@ -1192,24 +1192,17 @@ void main() {
TestSemantics( TestSemantics(
flags: <SemanticsFlag>[ flags: <SemanticsFlag>[
SemanticsFlag.isSelected, SemanticsFlag.isSelected,
SemanticsFlag.isHeader,
], ],
actions: <SemanticsAction>[SemanticsAction.tap], actions: <SemanticsAction>[SemanticsAction.tap],
label: 'AC\nTab 1 of 3', label: 'AC\nTab 1 of 3',
textDirection: TextDirection.ltr, textDirection: TextDirection.ltr,
), ),
TestSemantics( TestSemantics(
flags: <SemanticsFlag>[
SemanticsFlag.isHeader,
],
actions: <SemanticsAction>[SemanticsAction.tap], actions: <SemanticsAction>[SemanticsAction.tap],
label: 'Alarm\nTab 2 of 3', label: 'Alarm\nTab 2 of 3',
textDirection: TextDirection.ltr, textDirection: TextDirection.ltr,
), ),
TestSemantics( TestSemantics(
flags: <SemanticsFlag>[
SemanticsFlag.isHeader,
],
actions: <SemanticsAction>[SemanticsAction.tap], actions: <SemanticsAction>[SemanticsAction.tap],
label: 'Hot Tub\nTab 3 of 3', label: 'Hot Tub\nTab 3 of 3',
textDirection: TextDirection.ltr, textDirection: TextDirection.ltr,
...@@ -1260,24 +1253,17 @@ void main() { ...@@ -1260,24 +1253,17 @@ void main() {
TestSemantics( TestSemantics(
flags: <SemanticsFlag>[ flags: <SemanticsFlag>[
SemanticsFlag.isSelected, SemanticsFlag.isSelected,
SemanticsFlag.isHeader,
], ],
actions: <SemanticsAction>[SemanticsAction.tap], actions: <SemanticsAction>[SemanticsAction.tap],
label: 'AC\nTab 1 of 3', label: 'AC\nTab 1 of 3',
textDirection: TextDirection.ltr, textDirection: TextDirection.ltr,
), ),
TestSemantics( TestSemantics(
flags: <SemanticsFlag>[
SemanticsFlag.isHeader,
],
actions: <SemanticsAction>[SemanticsAction.tap], actions: <SemanticsAction>[SemanticsAction.tap],
label: 'Alarm\nTab 2 of 3', label: 'Alarm\nTab 2 of 3',
textDirection: TextDirection.ltr, textDirection: TextDirection.ltr,
), ),
TestSemantics( TestSemantics(
flags: <SemanticsFlag>[
SemanticsFlag.isHeader,
],
actions: <SemanticsAction>[SemanticsAction.tap], actions: <SemanticsAction>[SemanticsAction.tap],
label: 'Hot Tub\nTab 3 of 3', label: 'Hot Tub\nTab 3 of 3',
textDirection: TextDirection.ltr, textDirection: TextDirection.ltr,
...@@ -1565,16 +1551,12 @@ void main() { ...@@ -1565,16 +1551,12 @@ void main() {
TestSemantics( TestSemantics(
flags: <SemanticsFlag>[ flags: <SemanticsFlag>[
SemanticsFlag.isSelected, SemanticsFlag.isSelected,
SemanticsFlag.isHeader,
], ],
actions: <SemanticsAction>[SemanticsAction.tap], actions: <SemanticsAction>[SemanticsAction.tap],
label: 'Red\nTab 1 of 2', label: 'Red\nTab 1 of 2',
textDirection: TextDirection.ltr, textDirection: TextDirection.ltr,
), ),
TestSemantics( TestSemantics(
flags: <SemanticsFlag>[
SemanticsFlag.isHeader,
],
actions: <SemanticsAction>[SemanticsAction.tap], actions: <SemanticsAction>[SemanticsAction.tap],
label: 'Green\nTab 2 of 2', label: 'Green\nTab 2 of 2',
textDirection: TextDirection.ltr, textDirection: TextDirection.ltr,
...@@ -1623,16 +1605,12 @@ void main() { ...@@ -1623,16 +1605,12 @@ void main() {
TestSemantics( TestSemantics(
flags: <SemanticsFlag>[ flags: <SemanticsFlag>[
SemanticsFlag.isSelected, SemanticsFlag.isSelected,
SemanticsFlag.isHeader,
], ],
actions: <SemanticsAction>[SemanticsAction.tap], actions: <SemanticsAction>[SemanticsAction.tap],
label: 'Red\nTab 1 of 2', label: 'Red\nTab 1 of 2',
textDirection: TextDirection.ltr, textDirection: TextDirection.ltr,
), ),
TestSemantics( TestSemantics(
flags: <SemanticsFlag>[
SemanticsFlag.isHeader,
],
actions: <SemanticsAction>[SemanticsAction.tap], actions: <SemanticsAction>[SemanticsAction.tap],
label: 'Green\nTab 2 of 2', label: 'Green\nTab 2 of 2',
textDirection: TextDirection.ltr, textDirection: TextDirection.ltr,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment