VxGestureBuilder class
A widget that detects gestures.
Attempts to recognize gestures that correspond to its non-null callbacks.
If this widget has a child, it defers to that child for its sizing behavior. If it does not have a child, it grows to fit the parent instead.
By default a GestureDetector with an invisible child ignores touches;
this behavior can be controlled with behavior
.
GestureDetector also listens for accessibility events and maps
them to the callbacks. To ignore accessibility events, set
excludeFromSemantics
to true.
See flutter.dev/gestures/ for additional information.
Material design applications typically react to touches with ink splash effects. The InkWell class implements this effect and can be used in place of a GestureDetector for handling taps.
- Available Extensions
Constructors
- VxGestureBuilder(Widget _child, Function _onClick)
- VxGestureBuilder.doubleClick(Widget _child, Function _onDoubleClick)
- VxGestureBuilder.longClick(Widget _child, Function _onLongClick)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
doubleClick(
{required Function onDoubleClick}) → VxGestureBuilder - On clicking two times.
-
longClick(
{required Function onLongClick}) → VxGestureBuilder - On long pressing.
-
make(
{Key? key}) → Widget -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited