gesture library
Classes
- CompetitiveDragGestureRecognizer
- DragDownDetails
- Details object for callbacks that use GestureDragDownCallback.
- DragEndDetails
- Details object for callbacks that use GestureDragEndCallback.
- DragStartDetails
- Details object for callbacks that use GestureDragStartCallback.
- DragUpdateDetails
- Details object for callbacks that use GestureDragUpdateCallback.
- ForcePressDetails
- Details object for callbacks that use GestureForcePressStartCallback, GestureForcePressPeakCallback, GestureForcePressEndCallback or GestureForcePressUpdateCallback.
- GestureDispatcher
- GestureListener
- Widget can user EventClient to add event listener on viewport.
-
GestureRecognizerFactory<
T extends GestureRecognizer?> - Factory for creating gesture recognizers.
-
GestureRecognizerFactoryWithHandlers<
T extends GestureRecognizer> - Factory for creating gesture recognizers that delegates to callbacks.
- KrakenScrollable
- LongPressEndDetails
- Details for callbacks that use GestureLongPressEndCallback.
- LongPressMoveUpdateDetails
- Details for callbacks that use GestureLongPressMoveUpdateCallback.
- LongPressStartDetails
- Details for callbacks that use GestureLongPressStartCallback.
- RenderSemanticsGestureHandler
- Listens for the specified gestures from the semantics server (e.g. an accessibility tool).
- ScaleEndDetails
- Details for GestureScaleEndCallback.
- ScaleStartDetails
- Details for GestureScaleStartCallback.
- ScaleUpdateDetails
- Details for GestureScaleUpdateCallback.
- ScrollHorizontalDragGestureRecognizer
- Recognizes movement in the horizontal direction.
- ScrollVerticalDragGestureRecognizer
- Recognizes movement in the vertical direction.
- SwipeDetails
- SwipeGestureRecognizer
- TapDownDetails
- Details for GestureTapDownCallback, such as position.
- TapUpDetails
- Details for GestureTapUpCallback, such as position.
- TouchPoint
- Velocity
- A velocity in two dimensions.
Enums
Constants
- DIRECTION_DOWN → const String
- DIRECTION_LEFT → const String
- DIRECTION_RIGHT → const String
- DIRECTION_UP → const String
- kPrecisePointerSwipeSlop → const double
- Like kSwipeSlop, but for more precise pointers like mice and trackpads.
- kSwipeSlop → const double
- The distance a touch has to travel for the framework to be confident that the gesture is a swipe gesture.
Functions
-
computeSwipeSlop(
PointerDeviceKind kind) → double -
Determine the approriate pan slop pixels based on the
kind
of pointer.
Typedefs
- GestureDragCancelCallback = void Function()
- Signature for when the pointer that previously triggered a GestureDragDownCallback did not complete.
- GestureDragDownCallback = void Function(DragDownDetails details)
- Signature for when a pointer has contacted the screen and might begin to move.
- GestureDragEndCallback = void Function(DragEndDetails details)
- Signature for when a pointer that was previously in contact with the screen and moving is no longer in contact with the screen.
- GestureDragStartCallback = void Function(DragStartDetails details)
- Signature for when a pointer has contacted the screen and has begun to move.
- GestureDragUpdateCallback = void Function(DragUpdateDetails details)
- Signature for when a pointer that is in contact with the screen and moving has moved again.
- GestureEventListener = void Function(GestureEvent event)
- GestureForcePressEndCallback = void Function(ForcePressDetails details)
- Signature for when the pointer that previously triggered a ForcePressGestureRecognizer.onStart callback is no longer in contact with the screen.
- GestureForcePressPeakCallback = void Function(ForcePressDetails details)
- Signature used by ForcePressGestureRecognizer for when a pointer that has pressed with at least ForcePressGestureRecognizer.peakPressure.
- GestureForcePressStartCallback = void Function(ForcePressDetails details)
- Signature used by a ForcePressGestureRecognizer for when a pointer has pressed with at least ForcePressGestureRecognizer.startPressure.
- GestureForcePressUpdateCallback = void Function(ForcePressDetails details)
- Signature used by ForcePressGestureRecognizer during the frames after the triggering of a ForcePressGestureRecognizer.onStart callback.
- GestureLongPressCallback = void Function()
- Callback signature for LongPressGestureRecognizer.onLongPress.
- GestureLongPressEndCallback = void Function(LongPressEndDetails details)
- Callback signature for LongPressGestureRecognizer.onLongPressEnd.
- GestureLongPressMoveUpdateCallback = void Function(LongPressMoveUpdateDetails details)
- Callback signature for LongPressGestureRecognizer.onLongPressMoveUpdate.
- GestureLongPressStartCallback = void Function(LongPressStartDetails details)
- Callback signature for LongPressGestureRecognizer.onLongPressStart.
- GestureLongPressUpCallback = void Function()
- Callback signature for LongPressGestureRecognizer.onLongPressUp.
-
GestureRecognizerFactoryConstructor<
T extends GestureRecognizer> = T Function() - Signature for closures that implement GestureRecognizerFactory.constructor.
-
GestureRecognizerFactoryInitializer<
T extends GestureRecognizer> = void Function(T instance) - Signature for closures that implement GestureRecognizerFactory.initializer.
- GestureScaleEndCallback = void Function(ScaleEndDetails details)
- Signature for when the pointers are no longer in contact with the screen.
- GestureScaleStartCallback = void Function(ScaleStartDetails details)
- Signature for when the pointers in contact with the screen have established a focal point and initial scale of 1.0.
- GestureScaleUpdateCallback = void Function(ScaleUpdateDetails details)
- Signature for when the pointers in contact with the screen have indicated a new focal point and/or scale.
- GestureSwipeCallback = void Function(SwipeDetails details)
- GestureSwipeCancelCallback = void Function()
- GestureTapCallback = void Function()
- Signature for when a tap has occurred.
- GestureTapCancelCallback = void Function()
- Signature for when the pointer that previously triggered a GestureTapDownCallback will not end up causing a tap.
- GestureTapDownCallback = void Function(TapDownDetails details)
- Signature for when a pointer that might cause a tap has contacted the screen.
- GestureTapUpCallback = void Function(TapUpDetails details)
- Signature for when a pointer that will trigger a tap has stopped contacting the screen.
- IsAcceptedDragCallback = bool Function(AxisDirection direction)
- ScrollListener = void Function(double scrollOffset, AxisDirection axisDirection)
- TouchEventListener = void Function(TouchEvent event)