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