Search categories, packages and repositories

Package detailsv0.1.0

motion_sensors

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

AndroidiOS
30-day downloads
451
Likes
49
Pub points
150

Install package

flutter pub add motion_sensors

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The motion_sensors package is a Flutter plugin that provides access to device motion sensors on Android and iOS, including accelerometer, gyroscope, magnetometer, and orientation data. It enables real-time sensor readings for applications requiring device movement or position tracking. The plugin is lightweight and integrates seamlessly with Flutter's event-driven architecture, allowing developers to build interactive experiences such as gesture recognition, augmented reality features, or fitness tracking. It supports both platforms and is maintained by final.dev.

Use cases

  • Gesture detection in mobile apps
  • Augmented reality applications
  • Fitness and activity tracking
  • Device orientation monitoring
  • Interactive game controls

Key features

  • Real-time sensor data streaming
  • Support for accelerometer, gyroscope, magnetometer, and orientation
  • Cross-platform compatibility (Android & iOS)
  • Simple API for subscribing to sensor events
  • Low-level access to raw sensor values

Suitable for

  • Developers building motion-aware apps
  • Apps requiring real-time device movement tracking
  • AR/VR and gaming applications
  • Fitness and health tracking tools

Considerations

  • Requires appropriate permissions on Android and iOS
  • Battery usage may increase with continuous sensor polling
  • Data accuracy depends on device hardware
  • Not suitable for high-precision industrial applications
  • May require calibration on certain devices

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package