FLUTTER ECOSYSTEM

zesage/motion_sensors

Android および iOS の加速度計、ジャイロスコープ、マグネトメーター センサーにアクセスするための Flutter プラグイン。

motion_sensors のプロジェクト画像
Stars
45
Forks
69
最終プッシュ(UTC)
2024/04/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