gestures method
Widget
gestures({
- Key? key,
- GestureTapDownCallback? onTapDown,
- GestureTapUpCallback? onTapUp,
- GestureTapCallback? onTap,
- GestureTapCancelCallback? onTapCancel,
- GestureTapCallback? onSecondaryTap,
- GestureTapDownCallback? onSecondaryTapDown,
- GestureTapUpCallback? onSecondaryTapUp,
- GestureTapCancelCallback? onSecondaryTapCancel,
- GestureTapDownCallback? onTertiaryTapDown,
- GestureTapUpCallback? onTertiaryTapUp,
- GestureTapCancelCallback? onTertiaryTapCancel,
- GestureTapDownCallback? onDoubleTapDown,
- GestureTapCallback? onDoubleTap,
- GestureTapCancelCallback? onDoubleTapCancel,
- GestureLongPressDownCallback? onLongPressDown,
- GestureLongPressCancelCallback? onLongPressCancel,
- GestureLongPressCallback? onLongPress,
- GestureLongPressStartCallback? onLongPressStart,
- GestureLongPressMoveUpdateCallback? onLongPressMoveUpdate,
- GestureLongPressUpCallback? onLongPressUp,
- GestureLongPressEndCallback? onLongPressEnd,
- GestureLongPressDownCallback? onSecondaryLongPressDown,
- GestureLongPressCancelCallback? onSecondaryLongPressCancel,
- GestureLongPressCallback? onSecondaryLongPress,
- GestureLongPressStartCallback? onSecondaryLongPressStart,
- GestureLongPressMoveUpdateCallback? onSecondaryLongPressMoveUpdate,
- GestureLongPressUpCallback? onSecondaryLongPressUp,
- GestureLongPressEndCallback? onSecondaryLongPressEnd,
- GestureLongPressDownCallback? onTertiaryLongPressDown,
- GestureLongPressCancelCallback? onTertiaryLongPressCancel,
- GestureLongPressCallback? onTertiaryLongPress,
- GestureLongPressStartCallback? onTertiaryLongPressStart,
- GestureLongPressMoveUpdateCallback? onTertiaryLongPressMoveUpdate,
- GestureLongPressUpCallback? onTertiaryLongPressUp,
- GestureLongPressEndCallback? onTertiaryLongPressEnd,
- GestureDragDownCallback? onVerticalDragDown,
- GestureDragStartCallback? onVerticalDragStart,
- GestureDragUpdateCallback? onVerticalDragUpdate,
- GestureDragEndCallback? onVerticalDragEnd,
- GestureDragCancelCallback? onVerticalDragCancel,
- GestureDragDownCallback? onHorizontalDragDown,
- GestureDragStartCallback? onHorizontalDragStart,
- GestureDragUpdateCallback? onHorizontalDragUpdate,
- GestureDragEndCallback? onHorizontalDragEnd,
- GestureDragCancelCallback? onHorizontalDragCancel,
- GestureForcePressStartCallback? onForcePressStart,
- GestureForcePressPeakCallback? onForcePressPeak,
- GestureForcePressUpdateCallback? onForcePressUpdate,
- GestureForcePressEndCallback? onForcePressEnd,
- GestureDragDownCallback? onPanDown,
- GestureDragStartCallback? onPanStart,
- GestureDragUpdateCallback? onPanUpdate,
- GestureDragEndCallback? onPanEnd,
- GestureDragCancelCallback? onPanCancel,
- GestureScaleStartCallback? onScaleStart,
- GestureScaleUpdateCallback? onScaleUpdate,
- GestureScaleEndCallback? onScaleEnd,
- HitTestBehavior? behavior,
- bool excludeFromSemantics = false,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- bool trackpadScrollCausesScale = false,
- Offset trackpadScrollToScaleFactor = kDefaultTrackpadScrollToScaleFactor,
- Set<
PointerDeviceKind> ? supportedDevices,
Wraps this widget in a GestureDetector.
Implementation
Widget gestures({
Key? key,
GestureTapDownCallback? onTapDown,
GestureTapUpCallback? onTapUp,
GestureTapCallback? onTap,
GestureTapCancelCallback? onTapCancel,
GestureTapCallback? onSecondaryTap,
GestureTapDownCallback? onSecondaryTapDown,
GestureTapUpCallback? onSecondaryTapUp,
GestureTapCancelCallback? onSecondaryTapCancel,
GestureTapDownCallback? onTertiaryTapDown,
GestureTapUpCallback? onTertiaryTapUp,
GestureTapCancelCallback? onTertiaryTapCancel,
GestureTapDownCallback? onDoubleTapDown,
GestureTapCallback? onDoubleTap,
GestureTapCancelCallback? onDoubleTapCancel,
GestureLongPressDownCallback? onLongPressDown,
GestureLongPressCancelCallback? onLongPressCancel,
GestureLongPressCallback? onLongPress,
GestureLongPressStartCallback? onLongPressStart,
GestureLongPressMoveUpdateCallback? onLongPressMoveUpdate,
GestureLongPressUpCallback? onLongPressUp,
GestureLongPressEndCallback? onLongPressEnd,
GestureLongPressDownCallback? onSecondaryLongPressDown,
GestureLongPressCancelCallback? onSecondaryLongPressCancel,
GestureLongPressCallback? onSecondaryLongPress,
GestureLongPressStartCallback? onSecondaryLongPressStart,
GestureLongPressMoveUpdateCallback? onSecondaryLongPressMoveUpdate,
GestureLongPressUpCallback? onSecondaryLongPressUp,
GestureLongPressEndCallback? onSecondaryLongPressEnd,
GestureLongPressDownCallback? onTertiaryLongPressDown,
GestureLongPressCancelCallback? onTertiaryLongPressCancel,
GestureLongPressCallback? onTertiaryLongPress,
GestureLongPressStartCallback? onTertiaryLongPressStart,
GestureLongPressMoveUpdateCallback? onTertiaryLongPressMoveUpdate,
GestureLongPressUpCallback? onTertiaryLongPressUp,
GestureLongPressEndCallback? onTertiaryLongPressEnd,
GestureDragDownCallback? onVerticalDragDown,
GestureDragStartCallback? onVerticalDragStart,
GestureDragUpdateCallback? onVerticalDragUpdate,
GestureDragEndCallback? onVerticalDragEnd,
GestureDragCancelCallback? onVerticalDragCancel,
GestureDragDownCallback? onHorizontalDragDown,
GestureDragStartCallback? onHorizontalDragStart,
GestureDragUpdateCallback? onHorizontalDragUpdate,
GestureDragEndCallback? onHorizontalDragEnd,
GestureDragCancelCallback? onHorizontalDragCancel,
GestureForcePressStartCallback? onForcePressStart,
GestureForcePressPeakCallback? onForcePressPeak,
GestureForcePressUpdateCallback? onForcePressUpdate,
GestureForcePressEndCallback? onForcePressEnd,
GestureDragDownCallback? onPanDown,
GestureDragStartCallback? onPanStart,
GestureDragUpdateCallback? onPanUpdate,
GestureDragEndCallback? onPanEnd,
GestureDragCancelCallback? onPanCancel,
GestureScaleStartCallback? onScaleStart,
GestureScaleUpdateCallback? onScaleUpdate,
GestureScaleEndCallback? onScaleEnd,
HitTestBehavior? behavior,
bool excludeFromSemantics = false,
DragStartBehavior dragStartBehavior = DragStartBehavior.start,
bool trackpadScrollCausesScale = false,
Offset trackpadScrollToScaleFactor = kDefaultTrackpadScrollToScaleFactor,
Set<PointerDeviceKind>? supportedDevices,
}) {
return GestureDetector(
key: key,
onTapDown: onTapDown,
onTapUp: onTapUp,
onTap: onTap,
onTapCancel: onTapCancel,
onSecondaryTap: onSecondaryTap,
onSecondaryTapDown: onSecondaryTapDown,
onSecondaryTapUp: onSecondaryTapUp,
onSecondaryTapCancel: onSecondaryTapCancel,
onTertiaryTapDown: onTertiaryTapDown,
onTertiaryTapUp: onTertiaryTapUp,
onTertiaryTapCancel: onTertiaryTapCancel,
onDoubleTapDown: onDoubleTapDown,
onDoubleTap: onDoubleTap,
onDoubleTapCancel: onDoubleTapCancel,
onLongPressDown: onLongPressDown,
onLongPressCancel: onLongPressCancel,
onLongPress: onLongPress,
onLongPressStart: onLongPressStart,
onLongPressMoveUpdate: onLongPressMoveUpdate,
onLongPressUp: onLongPressUp,
onLongPressEnd: onLongPressEnd,
onSecondaryLongPressDown: onSecondaryLongPressDown,
onSecondaryLongPressCancel: onSecondaryLongPressCancel,
onSecondaryLongPress: onSecondaryLongPress,
onSecondaryLongPressStart: onSecondaryLongPressStart,
onSecondaryLongPressMoveUpdate: onSecondaryLongPressMoveUpdate,
onSecondaryLongPressUp: onSecondaryLongPressUp,
onSecondaryLongPressEnd: onSecondaryLongPressEnd,
onTertiaryLongPressDown: onTertiaryLongPressDown,
onTertiaryLongPressCancel: onTertiaryLongPressCancel,
onTertiaryLongPress: onTertiaryLongPress,
onTertiaryLongPressStart: onTertiaryLongPressStart,
onTertiaryLongPressMoveUpdate: onTertiaryLongPressMoveUpdate,
onTertiaryLongPressUp: onTertiaryLongPressUp,
onTertiaryLongPressEnd: onTertiaryLongPressEnd,
onVerticalDragDown: onVerticalDragDown,
onVerticalDragStart: onVerticalDragStart,
onVerticalDragUpdate: onVerticalDragUpdate,
onVerticalDragEnd: onVerticalDragEnd,
onVerticalDragCancel: onVerticalDragCancel,
onHorizontalDragDown: onHorizontalDragDown,
onHorizontalDragStart: onHorizontalDragStart,
onHorizontalDragUpdate: onHorizontalDragUpdate,
onHorizontalDragEnd: onHorizontalDragEnd,
onHorizontalDragCancel: onHorizontalDragCancel,
onForcePressStart: onForcePressStart,
onForcePressPeak: onForcePressPeak,
onForcePressUpdate: onForcePressUpdate,
onForcePressEnd: onForcePressEnd,
onPanDown: onPanDown,
onPanStart: onPanStart,
onPanUpdate: onPanUpdate,
onPanEnd: onPanEnd,
onPanCancel: onPanCancel,
onScaleStart: onScaleStart,
onScaleUpdate: onScaleUpdate,
onScaleEnd: onScaleEnd,
behavior: behavior,
excludeFromSemantics: excludeFromSemantics,
dragStartBehavior: dragStartBehavior,
trackpadScrollCausesScale: trackpadScrollCausesScale,
trackpadScrollToScaleFactor: trackpadScrollToScaleFactor,
supportedDevices: supportedDevices,
child: this,
);
}