Set slider semantics flag for sliders (#68019)

This commit is contained in:
Xavier Chrétien
2020-10-19 11:12:03 -04:00
committed by GitHub
parent 804c3ff31f
commit f26fbb6bdd
7 changed files with 24 additions and 5 deletions

View File

@@ -468,6 +468,7 @@ Matcher matchesSemantics({
bool hasToggledState = false,
bool isToggled = false,
bool hasImplicitScrolling = false,
bool isSlider = false,
// Actions //
bool hasTapAction = false,
bool hasLongPressAction = false,
@@ -519,6 +520,7 @@ Matcher matchesSemantics({
if (hasToggledState) SemanticsFlag.hasToggledState,
if (isToggled) SemanticsFlag.isToggled,
if (hasImplicitScrolling) SemanticsFlag.hasImplicitScrolling,
if (isSlider) SemanticsFlag.isSlider
];
final List<SemanticsAction> actions = <SemanticsAction>[