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

This commit is contained in:
Casey Hillers 2022-10-03 06:24:22 -07:00 committed by GitHub
parent 81dfe32214
commit 5dfa50c838
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 0 additions and 8 deletions

View File

@ -747,7 +747,6 @@ class ListTile extends StatelessWidget {
autofocus: autofocus,
enableFeedback: enableFeedback ?? tileTheme.enableFeedback ?? true,
child: Semantics(
button: onTap != null,
selected: selected,
enabled: enabled,
child: Ink(

View File

@ -325,7 +325,6 @@ void main() {
),
TestSemantics.rootChild(
flags: <SemanticsFlag>[
SemanticsFlag.isButton,
SemanticsFlag.hasEnabledState,
SemanticsFlag.isEnabled,
SemanticsFlag.isFocusable,

View File

@ -407,7 +407,6 @@ void main() {
SemanticsFlag.hasCheckedState,
SemanticsFlag.hasEnabledState,
SemanticsFlag.isEnabled,
SemanticsFlag.isButton,
SemanticsFlag.isInMutuallyExclusiveGroup,
SemanticsFlag.isFocusable,
],
@ -445,7 +444,6 @@ void main() {
SemanticsFlag.isChecked,
SemanticsFlag.hasEnabledState,
SemanticsFlag.isEnabled,
SemanticsFlag.isButton,
SemanticsFlag.isInMutuallyExclusiveGroup,
SemanticsFlag.isFocusable,
],

View File

@ -677,7 +677,6 @@ void main() {
hasToggledState: true,
isToggled: true,
isEnabled: true,
isButton: true,
isFocusable: true,
hasEnabledState: true,
label: 'Switch tile',

View File

@ -76,7 +76,6 @@ void main() {
SemanticsFlag.hasEnabledState,
SemanticsFlag.hasToggledState,
SemanticsFlag.isEnabled,
SemanticsFlag.isButton,
SemanticsFlag.isFocusable,
SemanticsFlag.isToggled,
],
@ -92,7 +91,6 @@ void main() {
SemanticsFlag.hasEnabledState,
SemanticsFlag.isChecked,
SemanticsFlag.isEnabled,
SemanticsFlag.isButton,
SemanticsFlag.isFocusable,
],
actions: SemanticsAction.tap.index,
@ -106,7 +104,6 @@ void main() {
SemanticsFlag.hasCheckedState,
SemanticsFlag.hasEnabledState,
SemanticsFlag.isEnabled,
SemanticsFlag.isButton,
SemanticsFlag.isFocusable,
SemanticsFlag.isInMutuallyExclusiveGroup,
],