GestureExtension extension
Extension class to add gesture handling capabilities to a Widget
.
- on
Methods
-
onDoubleTap(
VoidCallback callback) → GestureDetector -
Wraps the current
Widget
in aGestureDetector
widget with a double tap gesture callback. -
onInkDoubleTap(
VoidCallback callback, {Color? splashColor, Color? focusColor, Color? hoverColor, bool? enableFeedback, double? radius, BorderRadius? borderRadius, MouseCursor? mouseCursor}) → InkWell -
Wraps the current
Widget
in anInkWell
widget with a double tap gesture callback and customizable ink splash parameters. -
onInkTap(
VoidCallback callback, {Color? splashColor, Color? focusColor, Color? hoverColor, bool? enableFeedback, double? radius, BorderRadius? borderRadius, MouseCursor? mouseCursor}) → InkWell -
Wraps the current
Widget
in anInkWell
widget with a tap gesture callback and customizable ink splash parameters. -
onLongPress(
VoidCallback callback) → GestureDetector -
Wraps the current
Widget
in aGestureDetector
widget with a long press gesture callback. -
onTap(
VoidCallback callback) → GestureDetector -
Wraps the current
Widget
in aGestureDetector
widget with a tap gesture callback.