To use this plugin, add
sensors_plus as a dependency in your pubspec.yaml
This will expose three classes of sensor events, through three different streams.
AccelerometerEvents describe the velocity of the device, including the effects of gravity. Put simply, you can use accelerometer readings to tell if the device is moving in a particular direction.
UserAccelerometerEvents also describe the velocity of the device, but don't include gravity. They can also be thought of as just the user's affect on the device.
GyroscopeEvents describe the rotation of the device.
Each of these is exposed through a
Also see the
example subdirectory for an example application that uses the