Unverified Commit 5dfa50c8 authored by Casey Hillers's avatar Casey Hillers Committed by GitHub

Revert "Add button semantics in list tile" (#112779)

parent 81dfe322
...@@ -747,7 +747,6 @@ class ListTile extends StatelessWidget { ...@@ -747,7 +747,6 @@ class ListTile extends StatelessWidget {
autofocus: autofocus, autofocus: autofocus,
enableFeedback: enableFeedback ?? tileTheme.enableFeedback ?? true, enableFeedback: enableFeedback ?? tileTheme.enableFeedback ?? true,
child: Semantics( child: Semantics(
button: onTap != null,
selected: selected, selected: selected,
enabled: enabled, enabled: enabled,
child: Ink( child: Ink(
......
...@@ -325,7 +325,6 @@ void main() { ...@@ -325,7 +325,6 @@ void main() {
), ),
TestSemantics.rootChild( TestSemantics.rootChild(
flags: <SemanticsFlag>[ flags: <SemanticsFlag>[
SemanticsFlag.isButton,
SemanticsFlag.hasEnabledState, SemanticsFlag.hasEnabledState,
SemanticsFlag.isEnabled, SemanticsFlag.isEnabled,
SemanticsFlag.isFocusable, SemanticsFlag.isFocusable,
......
...@@ -407,7 +407,6 @@ void main() { ...@@ -407,7 +407,6 @@ void main() {
SemanticsFlag.hasCheckedState, SemanticsFlag.hasCheckedState,
SemanticsFlag.hasEnabledState, SemanticsFlag.hasEnabledState,
SemanticsFlag.isEnabled, SemanticsFlag.isEnabled,
SemanticsFlag.isButton,
SemanticsFlag.isInMutuallyExclusiveGroup, SemanticsFlag.isInMutuallyExclusiveGroup,
SemanticsFlag.isFocusable, SemanticsFlag.isFocusable,
], ],
...@@ -445,7 +444,6 @@ void main() { ...@@ -445,7 +444,6 @@ void main() {
SemanticsFlag.isChecked, SemanticsFlag.isChecked,
SemanticsFlag.hasEnabledState, SemanticsFlag.hasEnabledState,
SemanticsFlag.isEnabled, SemanticsFlag.isEnabled,
SemanticsFlag.isButton,
SemanticsFlag.isInMutuallyExclusiveGroup, SemanticsFlag.isInMutuallyExclusiveGroup,
SemanticsFlag.isFocusable, SemanticsFlag.isFocusable,
], ],
......
...@@ -677,7 +677,6 @@ void main() { ...@@ -677,7 +677,6 @@ void main() {
hasToggledState: true, hasToggledState: true,
isToggled: true, isToggled: true,
isEnabled: true, isEnabled: true,
isButton: true,
isFocusable: true, isFocusable: true,
hasEnabledState: true, hasEnabledState: true,
label: 'Switch tile', label: 'Switch tile',
......
...@@ -76,7 +76,6 @@ void main() { ...@@ -76,7 +76,6 @@ void main() {
SemanticsFlag.hasEnabledState, SemanticsFlag.hasEnabledState,
SemanticsFlag.hasToggledState, SemanticsFlag.hasToggledState,
SemanticsFlag.isEnabled, SemanticsFlag.isEnabled,
SemanticsFlag.isButton,
SemanticsFlag.isFocusable, SemanticsFlag.isFocusable,
SemanticsFlag.isToggled, SemanticsFlag.isToggled,
], ],
...@@ -92,7 +91,6 @@ void main() { ...@@ -92,7 +91,6 @@ void main() {
SemanticsFlag.hasEnabledState, SemanticsFlag.hasEnabledState,
SemanticsFlag.isChecked, SemanticsFlag.isChecked,
SemanticsFlag.isEnabled, SemanticsFlag.isEnabled,
SemanticsFlag.isButton,
SemanticsFlag.isFocusable, SemanticsFlag.isFocusable,
], ],
actions: SemanticsAction.tap.index, actions: SemanticsAction.tap.index,
...@@ -106,7 +104,6 @@ void main() { ...@@ -106,7 +104,6 @@ void main() {
SemanticsFlag.hasCheckedState, SemanticsFlag.hasCheckedState,
SemanticsFlag.hasEnabledState, SemanticsFlag.hasEnabledState,
SemanticsFlag.isEnabled, SemanticsFlag.isEnabled,
SemanticsFlag.isButton,
SemanticsFlag.isFocusable, SemanticsFlag.isFocusable,
SemanticsFlag.isInMutuallyExclusiveGroup, SemanticsFlag.isInMutuallyExclusiveGroup,
], ],
......
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