@@ -2108,6 +2108,7 @@ void main() {
2108
2108
matchesSemantics (
2109
2109
label: 'AC\n Tab 1 of 3' ,
2110
2110
textDirection: TextDirection .ltr,
2111
+ isButton: true ,
2111
2112
isFocusable: true ,
2112
2113
isSelected: true ,
2113
2114
hasTapAction: true ,
@@ -2119,6 +2120,7 @@ void main() {
2119
2120
matchesSemantics (
2120
2121
label: 'Alarm\n Tab 2 of 3' ,
2121
2122
textDirection: TextDirection .ltr,
2123
+ isButton: true ,
2122
2124
isFocusable: true ,
2123
2125
hasTapAction: true ,
2124
2126
hasFocusAction: true ,
@@ -2129,6 +2131,7 @@ void main() {
2129
2131
matchesSemantics (
2130
2132
label: 'Hot Tub\n Tab 3 of 3' ,
2131
2133
textDirection: TextDirection .ltr,
2134
+ isButton: true ,
2132
2135
isFocusable: true ,
2133
2136
hasTapAction: true ,
2134
2137
hasFocusAction: true ,
@@ -2165,6 +2168,7 @@ void main() {
2165
2168
matchesSemantics (
2166
2169
label: 'AC\n Tab 1 of 3' ,
2167
2170
textDirection: TextDirection .ltr,
2171
+ isButton: true ,
2168
2172
isFocusable: true ,
2169
2173
isSelected: true ,
2170
2174
hasTapAction: true ,
@@ -2176,6 +2180,7 @@ void main() {
2176
2180
matchesSemantics (
2177
2181
label: 'Alarm\n Tab 2 of 3' ,
2178
2182
textDirection: TextDirection .ltr,
2183
+ isButton: true ,
2179
2184
isFocusable: true ,
2180
2185
hasTapAction: true ,
2181
2186
hasFocusAction: true ,
@@ -2186,6 +2191,7 @@ void main() {
2186
2191
matchesSemantics (
2187
2192
label: 'Hot Tub\n Tab 3 of 3' ,
2188
2193
textDirection: TextDirection .ltr,
2194
+ isButton: true ,
2189
2195
isFocusable: true ,
2190
2196
hasTapAction: true ,
2191
2197
hasFocusAction: true ,
@@ -2518,6 +2524,7 @@ void main() {
2518
2524
matchesSemantics (
2519
2525
label: 'Red\n Tab 1 of 2' ,
2520
2526
textDirection: TextDirection .ltr,
2527
+ isButton: true ,
2521
2528
isFocusable: true ,
2522
2529
isSelected: true ,
2523
2530
hasTapAction: true ,
@@ -2529,6 +2536,7 @@ void main() {
2529
2536
matchesSemantics (
2530
2537
label: 'Green\n Tab 2 of 2' ,
2531
2538
textDirection: TextDirection .ltr,
2539
+ isButton: true ,
2532
2540
isFocusable: true ,
2533
2541
hasTapAction: true ,
2534
2542
hasFocusAction: true ,
@@ -2563,6 +2571,7 @@ void main() {
2563
2571
matchesSemantics (
2564
2572
label: 'Red\n Tab 1 of 2' ,
2565
2573
textDirection: TextDirection .ltr,
2574
+ isButton: true ,
2566
2575
isFocusable: true ,
2567
2576
isSelected: true ,
2568
2577
hasTapAction: true ,
@@ -2574,6 +2583,7 @@ void main() {
2574
2583
matchesSemantics (
2575
2584
label: 'Green\n Tab 2 of 2' ,
2576
2585
textDirection: TextDirection .ltr,
2586
+ isButton: true ,
2577
2587
isFocusable: true ,
2578
2588
hasTapAction: true ,
2579
2589
hasFocusAction: true ,
@@ -2754,6 +2764,7 @@ void main() {
2754
2764
children: < TestSemantics > [
2755
2765
TestSemantics (
2756
2766
flags: < SemanticsFlag > [
2767
+ SemanticsFlag .isButton,
2757
2768
SemanticsFlag .isSelected,
2758
2769
SemanticsFlag .isFocusable,
2759
2770
],
@@ -2762,7 +2773,10 @@ void main() {
2762
2773
textDirection: TextDirection .ltr,
2763
2774
),
2764
2775
TestSemantics (
2765
- flags: < SemanticsFlag > [SemanticsFlag .isFocusable],
2776
+ flags: < SemanticsFlag > [
2777
+ SemanticsFlag .isButton,
2778
+ SemanticsFlag .isFocusable,
2779
+ ],
2766
2780
actions: < SemanticsAction > [SemanticsAction .tap, SemanticsAction .focus],
2767
2781
label: 'B\n Tab 2 of 2' ,
2768
2782
textDirection: TextDirection .ltr,
0 commit comments