Skip to content

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

License

Notifications You must be signed in to change notification settings

cclink/dchs_motion_sensors

 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 44.2%
  • Swift 26.6%
  • Kotlin 22.4%
  • Ruby 5.2%
  • Objective-C 1.6%