# fluttertpc_motion_sensors **Repository Path**: openharmony-sig/fluttertpc_motion_sensors ## Basic Information - **Project Name**: fluttertpc_motion_sensors - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2024-11-11 - **Last Updated**: 2025-05-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 🚨 **重要提示 | IMPORTANT** > > **⚠️ 此代码仓已归档。新地址请访问 [fluttertpc_motion_sensors](https://gitcode.com/openharmony-sig/fluttertpc_motion_sensors)。| ⚠️ This repository has been archived. For the new address, please visit [fluttertpc_motion_sensors](https://gitcode.com/openharmony-sig/fluttertpc_motion_sensors).** > --- > # motion_sensors [![pub package](https://img.shields.io/pub/v/motion_sensors.svg)](https://pub.dev/packages/motion_sensors) 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](https://flutter.io/platform-plugins/). ```yaml dependencies: motion_sensors: ^0.1.0 ``` Import to your project. ``` dart import 'package:motion_sensors/motion_sensors.dart'; motionSensors.magnetometer.listen((MagnetometerEvent event) { print(event); }); ``` ## Screenshot