Reputation: 73
I'm working on swiping between different pages for my Flutter application. 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.
Is there a supported way of doing this in Flutter?
Upvotes: 5
Views: 1800
Reputation: 9190
I think I'm trying to do the opposite thing (send all two-pointer gestures to the GoogleMap
widget, and send one-pointer gestures to the ScrollView
widget that the map is contained within, but here is my solution -- it may give you some ideas of how to adapt this to your situation:
https://stackoverflow.com/a/78565065/3950982
Upvotes: 0
Reputation: 41
Check out 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.
Upvotes: 3