FLUTTER ECOSYSTEM

zesage/motion_sensors

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

motion_sensors project cover
Stars
45
Forks
69
Last push (UTC)
Apr 23, 2024
Project status
Active
Zebiao Hu GitHub avatar
GITHUB User

Zebiao Hu ↗

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

Shenzhen
LanguagesDartSwiftKotlinRubyObjective-C

Packages published by this repository

Dependencies used

Dependency list 4 items

Original README

English project snapshot. Visit GitHub for the latest content.

Expand / collapse project 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