Detect device orientation with AccelerometerEvent in Flutter

后端 未结 0 400
被撕碎了的回忆
被撕碎了的回忆 2021-01-23 07:40

How could I figure out if the user has the device in portrait or landscape mode with accelerometer data?

I tried like this:

  var accListener = acceleromet         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题