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