【发布时间】:2021-08-04 22:39:21
【问题描述】:
这是我的代码,onVerticalDragUpdate 在向下/向上滑动时被多次调用。我试图从零调整灵敏度。这对我不起作用。
GestureDetector(
onVerticalDragUpdate: (details) {
if (details.delta.dy > 0) {
print('------Down Swipe----');
changePage(currentPage++);
}
}
)
另外,我试过onPanUpdate 也有同样的问题。
GestureDetector(onPanUpdate: (details) {
if (details.delta.dy > 0) {
// swiping
}
});
【问题讨论】: