PackageTrack
Sign in Get early access

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
Release Pre-release

Releases

latest 29
  1. 2.1.1 30 May 2026
    Release notes
    • Updates for most recent SPM changes
    Open source →
  2. 2.1.0 08 Dec 2025
    Release notes
    • Add support for Swift Package Manager
    Open source →
  3. 2.0.5 27 Nov 2025
    Release notes
    • Fix: leaked intent receiver (thanks @Soap-141)
    Open source →
  4. 2.0.4 13 Oct 2025
    Release notes
    • Update android & gradle dependencies
    Open source →
  5. 2.0.3 07 Feb 2024
    Release notes
    • Fix crash on iOS resulting from returning void value
    Open source →
  6. 2.0.2 27 Jan 2024
    Release notes
    • 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
    Open source →
  7. 2.0.1 26 Jan 2024
    Release notes
    • Add information in README about updating to 2.*.
    Open source →
  8. 2.0.0 26 Jan 2024
    Release notes
    • 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
    Open source →
  9. 1.2.1 17 Oct 2023
    Release notes

    Switch to default instead of using AppLifecycleState.hidden to avoid …

    Open source →
    Release notes
    • Remove AppLifecycleState.hidden and use switch default instead
    Open source →
  10. 1.2.0 11 Oct 2023
    Release notes
    • Add compatibility with AGP 8 (Android Gradle Plugin).
    • Stop using fastest sensor listener by default as requires additional permission
    Open source →
  11. 1.1.4 06 Jun 2022
    Release notes
    • Fix bug stopping android from compiling
    Open source →
  12. 1.1.3 05 Jun 2022
    Release notes
    • Fix sensos getOrientation on android (for real this time)
    • Make iOS keep last orientation if device is flat
    Open source →
  13. 1.1.2 17 May 2022
    Release notes

    Use status bar on ios and fix direct sensor getorientaion on android

    Open source →
    Release notes
    • Fix direct sensor getOrientation on android
    • Listen to status bar change on iOS rather than device change (fix for older devices)
    Open source →
  14. 1.1.1 17 May 2022
    Release notes

    Rename substitute to defaultOrienatation

    Open source →
    Release notes
    • Rename unknownSubstitute to defaultOrientation.
    Open source →
  15. 1.1.0 17 May 2022
    Release notes

    Whoops, lower sdk constraint

    Open source →
    Release notes
    • 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.
    Open source →
  16. 1.0.0 09 Mar 2021
    Release notes

    Changes recommended by pub publish

    Open source →
    Release notes
    • Support null-safety.
    Open source →
  17. 0.4.3 20 Jul 2020
    Release notes
    • Re-add v1 embedding.
    Open source →
  18. 0.4.2 19 Jul 2020
    Release notes
    • Fix package definition & remove iOS i386 block
    Open source →
  19. 0.4.1 18 Jul 2020
    Release notes
    • Fix various pub-specific issues
    Open source →
  20. 0.4.0 18 Jul 2020
    Release notes
    • Fix an issue where the most recent orientation is not always retrieved.
    • Update to use new android embedding.
    • Use pendantic style for dart code
    Open source →
  21. 0.3.0 06 Nov 2019
    Release notes
    • Breaking change to support the fact that AppLifecycleState.suspended has changed to AppLifecycleState.detached.
    Open source →
  22. 0.2.0 24 Apr 2019
    Release notes

    Revert to using statusBarOrientation, fix usesensor on ios, bump vers…

    Open source →
    Release notes
    • 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)
    Open source →
  23. 0.1.2 05 Mar 2019
    Release notes
    • Reduce amount of orientation changes by keeping track of last change.
    Open source →
  24. 0.1.1 05 Mar 2019
    Release notes
    • Fix documentation and re-order changelog.
    Open source →
  25. 0.1.0 05 Mar 2019
    Release notes
    • 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.
    Open source →
  26. 0.0.4 02 Jan 2019
    Release notes
    • Switch to using UIDeviceOrientation on iOS
    Open source →
  27. 0.0.3 22 Oct 2018

    Nothing published for this version

  28. 0.0.2 04 Jun 2018
    Release notes
    • Fix name of package
    Open source →
  29. 0.0.1 04 Jun 2018
    Release notes
    • Implement Android & iOS native code.
    • Implement Flutter code & widget.
    • Write simple example.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive