Overview
The all_sensors package is a Flutter plugin that enables access to real-time data from accelerometer, gyroscope, and proximity sensors on Android and iOS devices. It provides a simple interface to listen to sensor updates, making it ideal for applications requiring motion detection, device orientation tracking, or proximity-based interactions. The plugin abstracts platform-specific implementations, offering consistent behavior across platforms. It is lightweight and integrates seamlessly with Flutter's event-driven architecture.
Use cases
- Motion-based app interactions
- Device orientation tracking
- Proximity-aware user interfaces
- Gesture recognition in mobile apps
- Fitness and activity monitoring
Key features
- Real-time sensor data streaming
- Cross-platform support (Android & iOS)
- Simple event-based API
- Support for accelerometer, gyroscope, and proximity sensors
- Lightweight and easy integration
Suitable for
- Developers building motion-sensitive apps
- Apps requiring device orientation awareness
- Interactive UIs using proximity or movement
- Wearable or fitness applications
- Prototyping sensor-based features
Considerations
- Requires appropriate permissions on Android
- Limited to specific sensor types
- Background operation may be restricted on iOS
- Battery usage should be monitored during continuous sensing
- Not suitable for high-frequency precision measurements