Fix semantic issue with vertical swipe controller
This commit is contained in:
parent
b2a6990fd8
commit
5b12c5ccb3
@ -53,18 +53,14 @@ class _VerticalSwipeController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Utility method to wrap a gesture detector and wire up the required handlers.
|
/// Utility method to wrap a gesture detector and wire up the required handlers.
|
||||||
Widget wrapGestureDetector(Widget child, {Key? key}) => Semantics(
|
Widget wrapGestureDetector(Widget child, {Key? key}) => GestureDetector(
|
||||||
button: false,
|
key: key,
|
||||||
child: GestureDetector(
|
excludeFromSemantics: true,
|
||||||
key: key,
|
onTapDown: (_) => handleTapDown(),
|
||||||
onTapDown: (_) {
|
onTapUp: (_) => handleTapCancelled(),
|
||||||
handleTapDown();
|
onVerticalDragUpdate: handleVerticalSwipeUpdate,
|
||||||
},
|
onVerticalDragEnd: (_) => handleVerticalSwipeCancelled(),
|
||||||
onTapUp: (_) => handleTapCancelled(),
|
onVerticalDragCancel: handleVerticalSwipeCancelled,
|
||||||
onVerticalDragUpdate: handleVerticalSwipeUpdate,
|
behavior: HitTestBehavior.translucent,
|
||||||
onVerticalDragEnd: (_) => handleVerticalSwipeCancelled(),
|
child: child);
|
||||||
onVerticalDragCancel: handleVerticalSwipeCancelled,
|
|
||||||
behavior: HitTestBehavior.translucent,
|
|
||||||
child: child),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user