FLUTTER ECOSYSTEM

touchable

Flutter library to add various gesture callbacks to each Shape you draw on your canvas in your CustomPainter

touchable cover
Latest version
1.0.2
30-day downloads
14.8K
Likes
232
Pub points
130

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

A Flutter library that enables gesture detection on individual shapes drawn within a CustomPainter. It allows developers to attach various touch callbacks—such as onTap, onLongPress, and onPan—to specific shapes on the canvas, enhancing interactivity in drawing, painting, and signature applications. Ideal for creating interactive canvases where users can tap or manipulate distinct elements.

Use cases
  • Interactive drawing apps
  • Canvas-based signature tools
  • Gesture-responsive diagrams
  • Custom painter with shape-level interactivity
  • Educational drawing interfaces
Key features
  • Shape-level gesture detection
  • Support for onTap, onLongPress, onPan
  • Easy integration with CustomPainter
  • Works across all Flutter platforms
  • Lightweight and focused API
Suitable for
  • Developers building interactive canvas features
  • Apps requiring touch feedback on drawn shapes
  • UIs with complex gesture logic on custom drawings
Considerations
  • Limited to shapes within CustomPainter
  • Does not handle overlapping shapes by default
  • Requires careful management of hit testing in complex layouts
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add touchable

Categories

Source repository

Related projects