Viewing version 0.2.1. Open the latest package page.

simple_gesture_detector

0.2.1

Easy to use, reliable and lightweight gesture detector for Flutter apps. Exposes simple API to react to basic gestures.

Download archive

Readme

Simple Gesture Detector

Pub Package

Easy to use, reliable and lightweight gesture detector for Flutter apps. Exposes simple API to react to basic gestures.

Features

  • Detect swipe gesture - and expose simple callbacks
  • Detect tap gestures (onTap, onDoubleTap, onLongPress)
  • Configure gesture recognition

Usage

Make sure to check out example project. For additional info please refer to API docs.

Installation

Add to pubspec.yaml:

dependencies:
  simple_gesture_detector: ^0.2.1
Changelog

[0.2.1]

  • Upgraded to Dart 3

[0.2.0]

  • Migrated to null safety

[0.1.6]

  • Migrated to AndroidX

[0.1.5]

  • Fixed potential null swipeOffset issue

[0.1.4]

  • Added onTap
  • Added onDoubleTap
  • Added onLongPress
  • Updated dependencies

[0.1.3]

  • Added non-distinct continuous detection behavior
  • Fixed minor issue with previousDirection
  • Improved names of SwipeDetectionBehavior enum values

[0.1.2]

  • Added continuous detection behavior
  • Merged swipe callbacks
  • Added SwipeDirection enum
  • Updated example project

[0.1.1]

  • Added documentation

[0.1.0] - Initial release

  • Added easy to use swipe gesture (both vertical and horizontal)
  • Example included

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'simple_gesture_detector:0.2.1'
pubspec.yaml
name: simple_gesture_detector
description: Easy to use, reliable and lightweight gesture detector for Flutter apps. Exposes simple API to react to basic gestures.
version: 0.2.1
author: Aleksander Woźniak <aleksanderwozniak96@gmail.com>
homepage: https://github.com/aleksanderwozniak/simple_gesture_detector

environment:
  sdk: ">=2.12.0 <4.0.0"
  flutter: ">=1.17.0"

dependencies:
  flutter:
    sdk: flutter

dev_dependencies:
  flutter_test:
    sdk: flutter

flutter:

Version history

VersionPublishedArchiveSHA-256
0.1.0On demandDownloadbc07464a…e274d2
0.1.1On demandDownload9b4e283f…787b00
0.1.2On demandDownload3bc20b95…fe1782
0.1.3On demandDownload109cc236…7ac6f3
0.1.4On demandDownloadc5c9332c…0294c8
0.1.5On demandDownloadeba83182…102fd7
0.1.6On demandDownload7ab8ee20…01eb42
0.2.0-nullsafety.0On demandDownloadb6e99734…4529bf
0.2.0-nullsafety.1On demandDownloadd8bd27c5…b88826
0.2.0On demandDownload86d08f85…c36592
0.2.1Cached · Upstream SHA-256 matchedDownloadba2cd5af…9d19a3

Dependencies

flutter { "sdk": "flutter" }