Incorporating Link Semantics (#41327)

This commit is contained in:
Kate Lovett
2019-10-08 18:16:11 -07:00
committed by GitHub
parent 14c1c211d5
commit 1ec44a0c36
14 changed files with 104 additions and 16 deletions

View File

@@ -440,6 +440,7 @@ Matcher matchesSemantics({
bool isChecked = false,
bool isSelected = false,
bool isButton = false,
bool isLink = false,
bool isFocused = false,
bool isTextField = false,
bool isReadOnly = false,
@@ -489,6 +490,7 @@ Matcher matchesSemantics({
if (isChecked) SemanticsFlag.isChecked,
if (isSelected) SemanticsFlag.isSelected,
if (isButton) SemanticsFlag.isButton,
if (isLink) SemanticsFlag.isLink,
if (isTextField) SemanticsFlag.isTextField,
if (isReadOnly) SemanticsFlag.isReadOnly,
if (isFocused) SemanticsFlag.isFocused,

View File

@@ -412,6 +412,7 @@ void main() {
namesRoute: true,
header: true,
button: true,
link: true,
onTap: () { },
onLongPress: () { },
label: 'foo',
@@ -439,6 +440,7 @@ void main() {
hasTapAction: true,
hasLongPressAction: true,
isButton: true,
isLink: true,
isHeader: true,
namesRoute: true,
onTapHint: 'scan',
@@ -460,6 +462,7 @@ void main() {
hasTapAction: true,
hasLongPressAction: true,
isButton: true,
isLink: true,
isHeader: true,
namesRoute: true,
onTapHint: 'scan',
@@ -481,6 +484,7 @@ void main() {
hasTapAction: true,
hasLongPressAction: true,
isButton: true,
isLink: true,
isHeader: true,
namesRoute: true,
onTapHint: 'scans',
@@ -544,6 +548,7 @@ void main() {
isChecked: true,
isSelected: true,
isButton: true,
isLink: true,
isTextField: true,
isReadOnly: true,
hasEnabledState: true,