deven98 / shake

A flutter package for detecting phone shakes.
BSD 2-Clause "Simplified" License
95 stars 63 forks source link

Does detect work while travelling? #26

Open dhikshithrm opened 1 year ago

dhikshithrm commented 1 year ago

I saw this package was based on the device acceleration on the x, y, and z axes, based on the code below, it isn't clear from the code below that it's considering to ignore constant accelerations. Or does the shakeThresholdGravity keep that in check?

https://github.com/deven98/shake/blob/a11b016ecaab1f891e5527814c9b4524ce4a26d3/lib/shake.dart#L62-L87