all_device_sensors
A Flutter plugin to access all device sensors — accelerometer, gyroscope, magnetometer, linear acceleration, gravity, barometer, proximity, light and step counter. By Bharathwaj.
What this package is like to depend on
Last release 5 months ago
20 Mar 2026
Too new to tell
only 2 dated releases
Nearly every release is documented
notes for 2 of 2 stable releases
Nothing withdrawn
no release was ever pulled
5 months old
2 releases · first in 2026
2 releases in the last 12 months
see the full history below
Release timeline
2 releases · Mar 2026 to Mar 2026Releases
latest 2-
1.0.120 Mar 2026Release notes
Open source →Fixed
- Android critical bug —
onAttachedToEnginewas registering all 9 sensor EventChannels twice (first block was orphaned), causing double sensor listeners and unpredictable data. Each channel is now registered exactly once. - Step counter (Android) — replaced
TYPE_STEP_COUNTER(cumulative since reboot, rarely fires) withTYPE_STEP_DETECTORfor live per-step events that fire on every step. - SDK constraint — changed
^3.10.4to'>=3.0.0 <4.0.0'for compatibility with all Dart 3.x versions.
Improved
isSensorAvailable()documentation clarified — type codes are Android-based; iOS uses manually mapped values.
- Android critical bug —
-
1.0.016 Mar 2026Release notes
Open source →Added
- Initial release of all_device_sensors plugin
- Real-time streaming for accelerometer, gyroscope, magnetometer, linear acceleration, gravity
- Single-value streaming for barometer, proximity, light, step counter
getSensors()— returns all available sensors with detailed info (name, vendor, type, power, resolution, maxRange)isSensorAvailable(int type)— check sensor availability by Android type code- Configurable update rates via
SensorInterval(normal / ui / game / fastest) - Typed models:
SensorData,SingleSensorData,SensorInfo,RotationData - Cross-platform support: Android API 21+ and iOS 13.0+
- Example app with 4-tab UI (Motion, Environment, Activity, All Sensors)
Platform Support
- Android: API 21+ (Android 5.0+)
- iOS: 13.0+
Author