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;
});