FLUTTER ECOSYSTEM

native_device_orientation

A Flutter plugin for reading device's native orientation, either from UI orientation or from sensors

Latest version
2.1.0
30-day downloads
113.2K
Likes
146
Pub points
160

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

A Flutter plugin that provides access to the device's native orientation, retrieving data either from the UI orientation or from hardware sensors. It enables apps to detect and respond to changes in device rotation across Android and iOS platforms. The plugin is useful for applications requiring precise orientation awareness, such as augmented reality, gaming, or camera-based features. It integrates seamlessly with Flutter’s event system, allowing real-time updates when the device orientation changes.

Use cases
  • Augmented reality applications
  • Gaming with motion controls
  • Camera app orientation handling
  • Responsive UI based on device rotation
  • Sensor-based interactive experiences
Key features
  • Real-time orientation updates
  • Supports both UI and sensor-based orientation
  • Cross-platform compatibility (Android & iOS)
  • Simple event-driven API
  • Accurate device rotation detection
Suitable for
  • Apps needing precise device orientation
  • Developers building AR or VR experiences
  • Games requiring motion input
  • Applications with dynamic layout adjustments
Considerations
  • Requires appropriate permissions on Android
  • May consume additional battery when continuously monitored
  • Limited to device-level orientation data only
  • Not suitable for advanced sensor fusion needs
Supported platformsAndroidiOS

Install package

flutter pub add native_device_orientation

Categories

Source repository

Related projects