kuhnroyal / dchs_motion_sensors

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

motion_sensors

Flutter plugin for accessing the Android and iOS accelerometer, gyroscope, magnetometer and orientation sensors. Updated version from https://github.com/zesage/motion_sensors

Getting Started

To use this plugin, add dchs_motion_sensors as a dependency in your pubspec.yaml file.

dependencies:
  motion_sensors: ^1.0.1

Import to your project.

import 'package:dchs_motion_sensors/dchs_motion_sensors.dart';

motionSensors.magnetometer.listen((MagnetometerEvent event) {
    print(event);
});

About

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

License:Apache License 2.0


Languages

Language:Dart 44.2%Language:Swift 26.5%Language:Kotlin 22.5%Language:Ruby 5.2%Language:Objective-C 1.6%