我正在寻找一种在 Flutter 中检测手势速度的方法。就像假设您想要检测垂直手势一样。是否可以检测用户滑动的速度并相应地应用操作?
我在 Google 上搜索过,但找不到检测 Flutter 中手势速度的方法。
提前致谢。
最佳答案
传递给 GestureDetector
的 onXXXDragEnd
回调的 DragEndDetails
包含速度。
关于flutter - 检测 Flutter 中的手势速度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52917887/