v0.1.0
motion_sensors
用于访问 Android 和 iOS 加速度计、陀螺仪、磁力计和方向传感器的 Flutter 插件。
49喜欢 451近 30 天下载150Pub 分数
AndroidiOS
用于访问 Android 和 iOS 加速度计、陀螺仪和磁力计传感器的 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);
});

依赖清单 4 项
{"sdk":"flutter"}^2.1.0^1.0.2{"sdk":"flutter"}先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗