1
+ import 'dart:math' as math;
2
+
1
3
import 'package:flutter/gestures.dart' ;
2
4
import 'package:flutter/material.dart' ;
3
5
import 'package:flutter/widgets.dart' ;
4
6
import 'package:flutter_map/flutter_map.dart' ;
7
+ import 'package:flutter_map/src/core/bounds.dart' ;
5
8
import 'package:flutter_map/src/gestures/gestures.dart' ;
6
9
import 'package:flutter_map/src/map/map.dart' ;
7
10
import 'package:flutter_map/src/map/map_state_widget.dart' ;
8
11
import 'package:latlong2/latlong.dart' ;
9
- import 'dart:math' as math;
10
- import 'package:flutter_map/src/core/bounds.dart' ;
11
12
12
13
class FlutterMapState extends MapGestureMixin
13
14
with AutomaticKeepAliveClientMixin {
@@ -72,14 +73,6 @@ class FlutterMapState extends MapGestureMixin
72
73
..onTap = _positionedTapController.onTap
73
74
..onSecondaryTap = _positionedTapController.onSecondaryTap
74
75
..onSecondaryTapDown = _positionedTapController.onTapDown;
75
- // ..onTapCancel = onTapCancel
76
- // ..onSecondaryTapUp = onSecondaryTapUp
77
- // ..onSecondaryTapCancel = onSecondaryTapCancel
78
- // ..onTertiaryTapDown = onTertiaryTapDown
79
- // ..onTertiaryTapUp = onTertiaryTapUp
80
- // ..onTertiaryTapCancel = onTertiaryTapCancel
81
- // ..gestureSettings = gestureSettings;
82
- // instance.team = _team;
83
76
},
84
77
);
85
78
@@ -88,42 +81,18 @@ class FlutterMapState extends MapGestureMixin
88
81
() => LongPressGestureRecognizer (debugOwner: this ),
89
82
(LongPressGestureRecognizer instance) {
90
83
instance.onLongPress = _positionedTapController.onLongPress;
91
- // ..onLongPressDown = onLongPressDown
92
- // ..onLongPressCancel = onLongPressCancel
93
- // ..onLongPressStart = onLongPressStart
94
- // ..onLongPressMoveUpdate = onLongPressMoveUpdate
95
- // ..onLongPressUp = onLongPressUp
96
- // ..onLongPressEnd = onLongPressEnd
97
- // ..onSecondaryLongPressDown = onSecondaryLongPressDown
98
- // ..onSecondaryLongPressCancel = onSecondaryLongPressCancel
99
- // ..onSecondaryLongPress = onSecondaryLongPress
100
- // ..onSecondaryLongPressStart = onSecondaryLongPressStart
101
- // ..onSecondaryLongPressMoveUpdate = onSecondaryLongPressMoveUpdate
102
- // ..onSecondaryLongPressUp = onSecondaryLongPressUp
103
- // ..onSecondaryLongPressEnd = onSecondaryLongPressEnd
104
- // ..onTertiaryLongPressDown = onTertiaryLongPressDown
105
- // ..onTertiaryLongPressCancel = onTertiaryLongPressCancel
106
- // ..onTertiaryLongPress = onTertiaryLongPress
107
- // ..onTertiaryLongPressStart = onTertiaryLongPressStart
108
- // ..onTertiaryLongPressMoveUpdate = onTertiaryLongPressMoveUpdate
109
- // ..onTertiaryLongPressUp = onTertiaryLongPressUp
110
- // ..onTertiaryLongPressEnd = onTertiaryLongPressEnd
111
- // ..gestureSettings = gestureSettings;
112
- // instance.team = _team;
113
84
},
114
85
);
115
86
116
- if (options.absorbPanEventsOnScrollables &&
117
- InteractiveFlag .hasFlag (
118
- options.interactiveFlags, InteractiveFlag .drag)) {
87
+ if (InteractiveFlag .hasFlag (
88
+ options.interactiveFlags, InteractiveFlag .drag)) {
119
89
gestures[VerticalDragGestureRecognizer ] =
120
90
GestureRecognizerFactoryWithHandlers <VerticalDragGestureRecognizer >(
121
91
() => VerticalDragGestureRecognizer (debugOwner: this ),
122
92
(VerticalDragGestureRecognizer instance) {
123
93
instance.onUpdate = (details) {
124
- //Absorbing vertical drags
94
+ // Absorbing vertical drags
125
95
};
126
- // ..dragStartBehavior = dragStartBehavior
127
96
instance.gestureSettings = gestureSettings;
128
97
instance.team ?? = _team;
129
98
},
@@ -133,9 +102,8 @@ class FlutterMapState extends MapGestureMixin
133
102
() => HorizontalDragGestureRecognizer (debugOwner: this ),
134
103
(HorizontalDragGestureRecognizer instance) {
135
104
instance.onUpdate = (details) {
136
- //Absorbing horizontal drags
105
+ // Absorbing horizontal drags
137
106
};
138
- // ..dragStartBehavior = dragStartBehavior
139
107
instance.gestureSettings = gestureSettings;
140
108
instance.team ?? = _team;
141
109
},
0 commit comments