Here is my code, the onVerticalDragUpdate
called multiple times on swipe down/up. I tried to adjust sensitivity from zero. that not worked for me.
GestureDetector(
onVerticalDragUpdate: (details) {
if (details.delta.dy > 0) {
print('------Down Swipe----');
changePage(currentPage++);
}
}
)
Also, I tried onPanUpdate
which has the same problem.
GestureDetector(onPanUpdate: (details) {
if (details.delta.dy > 0) {
// swiping
}
});