gesture_pattern_detector 0.0.1 copy "gesture_pattern_detector: ^0.0.1" to clipboard
gesture_pattern_detector: ^0.0.1 copied to clipboard

gesture_pattern_detector is a Flutter package that allows developers to detect custom gesture patterns, similar to Morse code, in their apps. Define complex gestures by combining taps, long presses, a [...]

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:gesture_pattern_detector/gesture_pattern_detector.dart';

void main() {
  runApp(const MainApp());
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: GesturePatternDetector(
            onPattern: () {
              debugPrint('success');
            },
            pattern: GesturePattern.parse('><.-'),
            child: const Text(
              'Interact with me!',
              style: TextStyle(fontSize: 24),
            ),
          ),
        ),
      ),
    );
  }
}
10
likes
0
pub points
48%
popularity

Publisher

verified publisheramaandev.com

gesture_pattern_detector is a Flutter package that allows developers to detect custom gesture patterns, similar to Morse code, in their apps. Define complex gestures by combining taps, long presses, and swipes, and trigger actions when the correct sequence is performed. It's a versatile tool for implementing hidden features or secret gestures, enhancing user interactions in innovative ways.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on gesture_pattern_detector