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);
});