[英]Flutter two finger swipe gesture recognizer
I'm working on swiping between different pages for my Flutter application. 我正在为Flutter应用程序在不同页面之间滑动。 One of the screens is a full screen Google Map that uses all the single finger swipe gestures.
其中一个屏幕是全屏谷歌地图,它使用所有单指滑动手势。 I would like to keep these gestures, so I want to switch my PageView gestures to use two finger swipes instead.
我想保留这些手势,所以我想切换我的PageView手势来改为使用两个手指滑动。
Is there a supported way of doing this in Flutter? 在Flutter中有这样的支持方式吗?
Check out MultiDragGestureRecognizer . 查看MultiDragGestureRecognizer 。 You might want to build a custom gesture for your need.
您可能希望根据需要构建自定义手势。 But another thing is that PageView gesture would also need to be changed with this custom gesture.
但另一件事是,还需要使用此自定义手势更改PageView手势。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.