v0.1.0
motion_sensors
用于访问 Android 和 iOS 加速度计、陀螺仪、磁力计和方向传感器的 Flutter 插件。
49喜欢 730近 30 天下载150Pub 分数
AndroidiOS
用于访问 Android 和 iOS 加速度计、陀螺仪和磁力计传感器的 Flutter 插件。
{"sdk":"flutter"}^2.1.0^1.0.2{"sdk":"flutter"}以下为英文项目原文快照,最新内容请访问 GitHub。
Flutter plugin for accessing the Android and iOS accelerometer, gyroscope, magnetometer and orientation sensors.
To use this plugin, add motion_sensors as a dependency in your pubspec.yaml
file.
dependencies:
motion_sensors: ^0.1.0
Import to your project.
import 'package:motion_sensors/motion_sensors.dart';
motionSensors.magnetometer.listen((MagnetometerEvent event) {
print(event);
});