native_device_orientation
A Flutter plugin for reading device's native orientation, either from UI orientation or from sensors
2.1.1
170K downloads/mo
#914 most downloaded on pub.dev
rmtmckenzie/flutter_native_device_orientation
What this package is like to depend on
Last release 2 months ago
30 May 2026
Release timing varies
gaps range from 1 weeks to 1.7 years
Nearly every release is documented
notes for 28 of 29 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
29 releases · first in 2018
4 releases in the last 12 months
see the full history below
Release timeline
29 releases · Jun 2018 to May 2026
2019
2020
2021
2022
2023
2024
2025
2026
Releases
latest 29-
2.1.130 May 2026 -
2.1.008 Dec 2025 -
2.0.527 Nov 2025 -
2.0.413 Oct 2025 -
2.0.307 Feb 2024 -
2.0.227 Jan 2024Release notes
Open source →- Fixed bug causing orientation widget to continually re-request the orientation stream every time the widget rebuilt.
- Lowered android compile target to 33 as 34 isn't needed and caused warning
-
2.0.126 Jan 2024 -
2.0.026 Jan 2024Release notes
Open source →- Major refactoring of code, rebuilt project files from scratch. Should not change interface or what is exposed, but bumping major version anyways just in case.
- Stops deprecation & unsafe cast checks
- Exposes DeviceOrientation through NativeDeviceOrientation
-
1.2.117 Oct 2023 -
1.2.011 Oct 2023Release notes
Open source →- Add compatibility with AGP 8 (Android Gradle Plugin).
- Stop using
fastestsensor listener by default as requires additional permission
-
1.1.406 Jun 2022 -
1.1.305 Jun 2022Release notes
Open source →- Fix sensos getOrientation on android (for real this time)
- Make iOS keep last orientation if device is flat
-
1.1.217 May 2022Release notes
Open source →- Fix direct sensor getOrientation on android
- Listen to status bar change on iOS rather than device change (fix for older devices)
-
1.1.117 May 2022 -
1.1.017 May 2022Release notes
Open source →- Support Flutter 3.0 (should still support 2.x as well)
- Adds additional, more explicit way to use plugin
- Allows setting default if "unknown" is returned from native side, previously always defaulted to PortraitUp.
-
1.0.009 Mar 2021 -
0.4.320 Jul 2020 -
0.4.219 Jul 2020 -
0.4.118 Jul 2020 -
0.4.018 Jul 2020Release notes
Open source →- Fix an issue where the most recent orientation is not always retrieved.
- Update to use new android embedding.
- Use pendantic style for dart code
-
0.3.006 Nov 2019Release notes
Open source →- Breaking change to support the fact that AppLifecycleState.suspended has changed to AppLifecycleState.detached.
-
0.2.024 Apr 2019Release notes
Open source →- Slightly breaking change - on iOS, the sensor was used regardless of what was passed to useSensor due to a bug. This meant that even with UI rotation disabled, rotation events occured.
- Also switched back to using StatusBarOrientation. It isn't actually deprecated, just
not advised for normal iOS usage. However, it does what I want and is consistent with
Android - it returns the orientation of the actual window. If you really want to know
the orientation of the device, use
useSensor - Add buttons to explicitly get rotation using sensor or not (UI)
-
0.1.205 Mar 2019 -
0.1.105 Mar 2019 -
0.1.005 Mar 2019Release notes
Open source →- Integrate PRs updating to AndroidX and implementing useSensor
- Also made a few changes to do with UseSensor so be careful of that if you're using the NativeDeviceOrientationCommunicator directly; users who simply use the widget shouldn't notice anything.
-
0.0.402 Jan 2019 -
0.0.322 Oct 2018Nothing published for this version
-
0.0.204 Jun 2018 -
0.0.104 Jun 2018Release notes
Open source →- Implement Android & iOS native code.
- Implement Flutter code & widget.
- Write simple example.