GestureType enum

Defines the different types of gestures that can be detected by OnGesture in the Arcane UI library.

This enum provides a unified set of gesture types for enhancing interactivity across Arcane components, supporting primary taps for standard interactions, secondary and tertiary presses for contextual menus or advanced navigation, long presses for previews or deletions, and double presses for quick actions. It integrates seamlessly with GestureDetector and InkWell for ripple effects and HapticFeedback for tactile responses, ensuring consistent behavior in IconButton, Tile, CardSection, and other interactive elements. Usage emphasizes performance through efficient gesture recognition without unnecessary rebuilds, and accessibility via Semantics integration.

Key features:

  • Cross-device compatibility (touch, mouse, trackpad).
  • Extensible for ArcaneTheme-based custom feedback.

See also:

  • doc/component/gesture.md for more detailed documentation.
  • OnGesture, which uses these gesture types for enhanced interactivity.
  • GestureDetector, the underlying Flutter widget for raw gesture handling.
Inheritance
Available extensions

Values

press → const GestureType

Primary tap/click (left click on desktop)

secondaryPress → const GestureType

Secondary tap/click (right click on desktop)

tertiaryPress → const GestureType

Tertiary tap/click (middle click on desktop)

longPress → const GestureType

Long press with primary button

longSecondaryPress → const GestureType

Long press with secondary button

longTertiaryPress → const GestureType

Long press with tertiary button

doublePress → const GestureType

Double tap/click

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Constants

values → const List<GestureType>
A constant List of the values in this enum, in order of their declaration.