Skip to content
pubscout

gestures

1.0.0, released 5 years ago by andrebaltazar.com

Custom gesture detector widget for Flutter

WASM-ready
$ flutter pub add gestures
Source repository

What it does

Provides a custom gesture detector widget that allows users to perform custom drawn gestures using lines in specified axes directions. Triggers a callback when the gesture sequence ends successfully.

AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need custom shape or line-based gesture recognition in your app
  • Users need to input custom drawn patterns or directional gesture sequences

Skip it when

  • You only need standard Flutter gestures like taps, double taps, or basic pans
  • You need complex machine learning-based gesture or handwriting recognition

Strengths

  • Easy to integrate widget for custom gesture detection
  • Supports null safety and hit behavior forwarding

Weaknesses

  • Limited built-in documentation and gesture types shown in the example
  • No active development mentioned recently

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
Widget build(BuildContext context) {
  return CustomGestureDetector(
    gestures: [
      GestureLine(AxisDirection.down),
      GestureLine(AxisDirection.right),
      GestureLine(AxisDirection.up),
    ],
    onGestureEnd: (success) {
      if (success) {
        // TODO: your action here..
      }
    },
    child: Container(),
  );
}

Alternatives

Packages that do the same job and could replace gestures.