Incorporating Link Semantics (#41327)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user