device_orientation_windows 0.0.1
device_orientation_windows: ^0.0.1 copied to clipboard
A Flutter plugin to get Windows device orientation using wingdi
device_orientation_windows #
A Flutter plugin to get Windows device orientation using wingdi
Getting Started #
Get current device orientation:
DeviceOrientation deviceOrientation = await DeviceOrientationWindows.getDeviceOrientation();
Listen for device orientation change events:
DeviceOrientation? deviceOrientation;
DeviceOrientationWindows.onOrientationChanged().listen((orientation) {
deviceOrientation = orientation;
});