zesage / motion_sensors

Flutter plugin for accessing the Android and iOS accelerometer gyroscope and magnetometer sensors.
Apache License 2.0
42 stars 49 forks source link

How can I get the height of the phone on a horizontal plane? #9

Open fernandasdias opened 3 years ago

fernandasdias commented 3 years ago

Hello,

I need to detect when the user stands up and sit down on a chair. I was trying to use the orientation.y but I realized thats not the correct way to detect it. How can I do it?

I appreciate the help!