FLUTTER ECOSYSTEM

zesage/motion_sensors

用于访问 Android 和 iOS 加速度计、陀螺仪和磁力计传感器的 Flutter 插件。

motion_sensors 项目封面
Stars
45
Forks
69
最近推送(UTC)
2024年4月23日
项目状态
未归档
Zebiao Hu GitHub avatar
GITHUB User

Zebiao Hu ↗

Just a coder! Languages: Flutter, Dart, Go, Delphi.

Shenzhen
语言DartSwiftKotlinRubyObjective-C

此仓库发布的插件

使用的依赖

依赖清单 4 项

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

motion_sensors

pub package

Flutter plugin for accessing the Android and iOS accelerometer, gyroscope, magnetometer and orientation sensors.

Getting Started

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

Screenshot

https://github.com/zesage/motion_sensors/raw/master/screenshot.png