其他分享
首页 > 其他分享> > sensors

sensors

作者:互联网

import 'package:sensors/sensors.dart';

accelerometerEvents.listen((AccelerometerEvent event) {
// Do something with the event. }); gyroscopeEvents.listen((GyroscopeEvent event) { // Do something with the event. });
数据:event.x event.y event.z;

标签:Do,AccelerometerEvent,something,sensors,event,listen
来源: https://www.cnblogs.com/braveheart007/p/10989018.html