是一个开源的 Flutter 插件,用于访问手机传感器。这个插件提供了对常见传感器的访问接口,如加速度传感器、陀螺仪传感器、罗盘传感器、温度传感器等。 使用方法非常简单,只需要在需要使用传感器的地方导入库,然后调用相应的方法即可。 例如: import'package:sensors_plus/sensors_plus.dart';classMyAppe
A Flutter plugin to access the accelerometer, gyroscope, and magnetometer sensors. Platform Support * Currently it is not possible to set sensors sampling rate on web Usage Addsensors_plusas a dependency in your pubspec.yaml file. This will expose such classes of sensor events through a set of...
Platform iOS 17.0.3 Plugin sensors_plus Version 3.1.0 Flutter SDK 3.16.0-0.3.pre Steps to reproduce The sensors_plus 3.1.0 example located at https://pub.dev/packages/sensors_plus/example produces the same error seen in #2315 though this...
Platform 12 Plugin sensors_plus Version 4.0.2 Flutter SDK 3.16.4 Steps to reproduce While calling the accelerometerEventStream() method it is throwing this exception in android devices. In the below code syntax while calling the mehtod i...