Use case
hey everybody. my problem is calling callback only when a user drags the map in some direction and not when he taps on the marker. I was trying to add the solution described here.
gestureRecognizers: Set()
..add(Factory<DragGestureRecognizer>(() => Test(() {
myCallBack();
})),
but in this case, there is not any chance to separate gestures. My next effort was adding certain GestureRecognazers and assign myCallBack on onStart, onDown etc.
GoogleMap(
gestureRecognizers: Set()
..add(Factory<PanGestureRecognizer>(() => PanGestureRecognizer()..onUpadate = () {myCallback()}))
..add(Factory<ScaleGestureRecognizer>(() => ScaleGestureRecognizer()..onStart = () {myCallback()}))
..add(Factory<VerticalDragGestureRecognizer>(
() => VerticalDragGestureRecognizer()..onDown = () {myCallback()})),
but only function that called was onDown. and again it worked for absolutely all gestures including onTap. But I figured that the onUpdate should worked at least. but it didn't