FLUTTER ECOSYSTEM

matrix_gesture_detector

A gesture detector mapping translation/rotation/scale gestures to a Matrix4 object.

Latest version
0.1.0
30-day downloads
727
Likes
80
Pub points
25

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

A Flutter package that translates user touch gestures—such as panning, rotating, and scaling—into a Matrix4 object. It enables precise 2D transformations by mapping multi-touch inputs to a single transformation matrix, ideal for interactive graphics, canvas-based apps, or custom UI components requiring advanced gesture handling. The package simplifies the management of complex gestures by abstracting low-level touch events into a unified matrix representation.

Use cases
  • Interactive canvas manipulation
  • Image or widget scaling and rotation
  • Custom drawing tools
  • Gesture-based UI components
  • 2D transform animations
Key features
  • Maps gestures to Matrix4
  • Supports translation, rotation, and scale
  • Handles multi-touch input
  • Provides clean API for transformation logic
  • Integrates with RenderBox and CustomPaint
Suitable for
  • Developers building interactive graphics
  • Apps requiring precise 2D transforms
  • UI components with pinch-to-zoom or rotate features
  • Canvas-based drawing applications
  • Advanced gesture-driven interfaces
Considerations
  • Requires understanding of Matrix4 and 2D transforms
  • Not suitable for simple tap or swipe gestures
  • May need performance tuning for high-frequency updates
  • Limited to 2D transformations
  • No built-in animation support
Supported platformsNot available

Install package

flutter pub add matrix_gesture_detector

Categories

Source repository

Related projects