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

A Flutter package that detects custom gesture patterns (taps, swipes, long presses) to trigger actions, perfect for hidden features, dev tools, and unique interactions.

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

A Flutter package that detects custom gesture patterns (taps, swipes, long presses) to trigger actions, perfect for hidden features, dev tools, and unique interactions.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on gesture_pattern_detector