matrix_gesture_detector 0.1.0

  • Example
  • Installing
  • Versions
  • 83

matrix_gesture_detector #

MatrixGestureDetector detects translation, scale and rotation gestures and combines them into Matrix4 object that can be used by Transform widget or by low level CustomPainter code. You can customize types of reported gestures by passing shouldTranslate, shouldScale and shouldRotate parameters.

Getting Started #

The usage is as follows:

    onMatrixUpdate: (Matrix4 m, Matrix4 tm, Matrix4 sm, Matrix4 rm) {
      setState(() {
        matrix = m;
    child: SomeWidgetThatUsesMatrix(
      matrix: matrix,

here: SomeWidgetThatUsesMatrix could be a Transform widget (transform_demo.dart) or a CustomPaint widget which CustomPainter uses Matrix4 in its low level drawing code (custom_painter_demo.dart).

[0.0.1] - TODO: Add release date.

  • TODO: Describe initial release.


example #

A new Flutter project.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  matrix_gesture_detector: ^0.1.0

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter packages get

Alternatively, your editor might support flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:matrix_gesture_detector/matrix_gesture_detector.dart';
Version Uploaded Documentation Archive
0.1.0 Mar 8, 2019 Go to the documentation of matrix_gesture_detector 0.1.0 Download matrix_gesture_detector 0.1.0 archive
0.0.6 Mar 3, 2019 Go to the documentation of matrix_gesture_detector 0.0.6 Download matrix_gesture_detector 0.0.6 archive
0.0.5 Feb 25, 2019 Go to the documentation of matrix_gesture_detector 0.0.5 Download matrix_gesture_detector 0.0.5 archive
0.0.4 Feb 19, 2019 Go to the documentation of matrix_gesture_detector 0.0.4 Download matrix_gesture_detector 0.0.4 archive
0.0.3 Feb 16, 2019 Go to the documentation of matrix_gesture_detector 0.0.3 Download matrix_gesture_detector 0.0.3 archive
0.0.2 Feb 12, 2019 Go to the documentation of matrix_gesture_detector 0.0.2 Download matrix_gesture_detector 0.0.2 archive
0.0.1 Feb 12, 2019 Go to the documentation of matrix_gesture_detector 0.0.1 Download matrix_gesture_detector 0.0.1 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Apr 25, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.2.0
  • pana: 0.12.14
  • Flutter: 1.4.7


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
vector_math ^2.0.5 2.0.8
Transitive dependencies
collection 1.14.11
meta 1.1.6 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
Dev dependencies