- Fix bug stopping android from compiling
- Fix sensos getOrientation on android (for real this time)
- Make iOS keep last orientation if device is flat
- Fix direct sensor getOrientation on android
- Listen to status bar change on iOS rather than device change (fix for older devices)
- Rename unknownSubstitute to defaultOrientation.
- 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.
- Support null-safety.
- Re-add v1 embedding.
- Fix package definition & remove iOS i386 block
- Fix various pub-specific issues
- Fix an issue where the most recent orientation is not always retrieved.
- Update to use new android embedding.
- Use pendantic style for dart code
- Breaking change to support the fact that AppLifecycleState.suspended has changed to AppLifecycleState.detached.
- 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)
- Reduce amount of orientation changes by keeping track of last change.
- Fix documentation and re-order changelog.
- 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.
- Switch to using UIDeviceOrientation on iOS
- Fix name of package
- Implement Android & iOS native code.
- Implement Flutter code & widget.
- Write simple example.