{"repo":"d3xvn/shake","free":true,"listed":false,"github":"https://github.com/d3xvn/shake","clone":"git clone https://github.com/d3xvn/shake.git","description":"A Flutter package to detect phone shakes with directional information.","language":"Dart","stars":103,"topics":["flutter","flutter-package","flutter-plugin"],"license":"BSD-2-Clause","category":"mobile-apps","readme_excerpt":"shake A Flutter package to detect phone shakes with directional information. Features - Shake detection with directional information (X, Y, Z axes) - Force measurement - Noise filtering option - Configurable shake count and timing parameters Installation Add this to your package's pubspec.yaml file: Usage Basic Usage OR Breaking Changes in v3.0.0 Version 3.0.0 introduced a breaking change where onPhoneShake now receives a ShakeEvent parameter with information about direction, force, and timestamp. If you're upgrading from v2.x, you need to update your callback to accept the ShakeEvent parameter: Noise Filtering Custom Configuration Directional Shake Information The ShakeEvent provides the direction of the shake through the direction property: Stopping Detection To stop listening: Configuration Parameters Parameter Description Default ----------- ------------- --------- shakeThresholdGravity Acceleration threshold for shake detection (in g) 2.7 shakeSlopTimeMS Minimum time between shake detections (in ms) 500 shakeCountResetTime Time before shake count resets (in ms) 3000 minimumShakeCount Number of shakes required before shake is triggered 1 useFilter Whether to apply noise filtering false License This project is licensed under the MIT License - see your project's license file for details.","default_branch":null,"files":null,"tree":[],"storefront":"/r/d3xvn","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/d3xvn/shake/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}