shake 3.0.0 copy "shake: ^3.0.0" to clipboard
shake: ^3.0.0 copied to clipboard

A flutter package to detect phone shakes. Adjustable G-force and reset periods.

3.0.0 - 2024-04-20 #

Breaking Changes: #

  • Changed onPhoneShake callback to receive a ShakeEvent parameter
  • Removed separate onDetailedShake callback as it's now redundant
  • Completely removed legacy callback support for a cleaner API

New Features: #

  • Added ShakeDirection enum for directional shake detection
  • Added ShakeEvent class with direction, force, and timestamp
  • Added noise filtering for smoother shake detection

Updates: #

  • Updated sensors_plus dependency to v6.1.1
  • Updated to modern Dart practices with improved typing
  • Updated minimum SDK constraints to Dart 3.0.0
  • Added linting and improved code quality
  • Enhanced example app with configurable parameters

2.2.0 #

  • Updated sensors_plus dep
  • Fixes flutter engine error

2.1.0 #

  • Added minimum shake count for triggering shake callback
  • Updated sensors_plus dep

2.0.0 #

1.0.1 11/06/2021 #

  • Changed callback return type
209
likes
150
points
37.1k
downloads

Publisher

verified publisherjoshi.dev

Weekly Downloads

A flutter package to detect phone shakes. Adjustable G-force and reset periods.

Repository
View/report issues

Documentation

API reference

License

BSD-2-Clause (license)

Dependencies

flutter, sensors_plus

More

Packages that depend on shake