mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-01 10:38:17 +08:00
Adding missing trailing coma
This commit is contained in:
@ -52,35 +52,37 @@ Widget _applyAdvancedGesturesDetectors(Game game, Widget child) {
|
||||
if (_tapHandlers.isNotEmpty) {
|
||||
gestures[MultiTapGestureRecognizer] =
|
||||
GestureRecognizerFactoryWithHandlers<MultiTapGestureRecognizer>(
|
||||
() => MultiTapGestureRecognizer(),
|
||||
(MultiTapGestureRecognizer instance) {
|
||||
instance.onTapDown = (pointerId, d) =>
|
||||
_tapHandlers.forEach((h) => h.onTapDown?.call(pointerId, d));
|
||||
instance.onTapUp = (pointerId, d) =>
|
||||
_tapHandlers.forEach((h) => h.onTapUp?.call(pointerId, d));
|
||||
instance.onTapCancel = (pointerId) =>
|
||||
_tapHandlers.forEach((h) => h.onTapCancel?.call(pointerId));
|
||||
instance.onTap =
|
||||
(pointerId) => _tapHandlers.forEach((h) => h.onTap?.call(pointerId));
|
||||
});
|
||||
() => MultiTapGestureRecognizer(),
|
||||
(MultiTapGestureRecognizer instance) {
|
||||
instance.onTapDown = (pointerId, d) =>
|
||||
_tapHandlers.forEach((h) => h.onTapDown?.call(pointerId, d));
|
||||
instance.onTapUp = (pointerId, d) =>
|
||||
_tapHandlers.forEach((h) => h.onTapUp?.call(pointerId, d));
|
||||
instance.onTapCancel = (pointerId) =>
|
||||
_tapHandlers.forEach((h) => h.onTapCancel?.call(pointerId));
|
||||
instance.onTap = (pointerId) =>
|
||||
_tapHandlers.forEach((h) => h.onTap?.call(pointerId));
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
if (game is MultiTouchDragDetector) {
|
||||
gestures[ImmediateMultiDragGestureRecognizer] =
|
||||
GestureRecognizerFactoryWithHandlers<
|
||||
ImmediateMultiDragGestureRecognizer>(
|
||||
() => ImmediateMultiDragGestureRecognizer(),
|
||||
(ImmediateMultiDragGestureRecognizer instance) {
|
||||
instance
|
||||
..onStart = (Offset o) {
|
||||
final drag = DragEvent();
|
||||
drag.initialPosition = o;
|
||||
ImmediateMultiDragGestureRecognizer>(
|
||||
() => ImmediateMultiDragGestureRecognizer(),
|
||||
(ImmediateMultiDragGestureRecognizer instance) {
|
||||
instance
|
||||
..onStart = (Offset o) {
|
||||
final drag = DragEvent();
|
||||
drag.initialPosition = o;
|
||||
|
||||
game.onReceiveDrag(drag);
|
||||
game.onReceiveDrag(drag);
|
||||
|
||||
return drag;
|
||||
};
|
||||
});
|
||||
return drag;
|
||||
};
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
return RawGestureDetector(
|
||||
|
||||
Reference in New Issue
Block a user