gesture_pattern_detector library

A library for detecting and recognizing gesture patterns.

This library provides functionality to detect and recognize gesture patterns, such as Morse code-like sequences of taps, long presses, and swipes. It includes the following components:

Example usage:

import 'package:gesture_pattern_detector/gesture_pattern_detector.dart';

GesturePatternDetector(
  pattern: GesturePattern.parse('>.-<'),  // Define the gesture pattern
  onPattern: () {
    print('Pattern matched!');
  },
  child: YourWidget(),  // Widget to wrap and detect gestures on
  timeout: Duration(seconds: 10),  // Optional timeout for pattern completion
);

Classes

GesturePattern
Represents a pattern of gestures.
GesturePatternDetector
A widget that detects a Morse code-like gesture pattern.
GesturePatternRecognizer
Core class to recognize a gesture pattern based on a Morse code-like string.

Enums

GestureType
Enum representing different types of gestures.