Open MRobertEvers opened 3 years ago
Additional info, NativeDeviceOrientationReader
widget works.
NativeDeviceOrientationReader(
builder: (context) { },
useSensor: true,
)
I haven't been able to reproduce this. Closing unless I receive additional feedback.
same issue on version 1.1.4, working on Samsung A53 but not working on Samsung S10+. NativeDeviceOrientationReader widget works.
Can you give me a bit more information? Does it never call back at all on Samsung S10+ no matter which way you turn the device? Do you have auto-rotate enabled? Is the activity rotating or set to not rotate?
Yes, never call back at all on Samsung S10+. This package works for me https://pub.dev/packages/device_orientation. I have some config below
It appears
onOrientationChanged(useSensor: true)
does not fire an event when the sensor orientation changes. However, the correct orientation is reported when the sensor is read manually.This can be seen in android on the official example.
Any suggested workarounds? I may get around to fixing this myself, but I don't have time right now.