device_auto_rotate_checker 0.0.1+1 copy "device_auto_rotate_checker: ^0.0.1+1" to clipboard
device_auto_rotate_checker: ^0.0.1+1 copied to clipboard

PlatformAndroid

A flutter plugin to check if device auto rotate is on or off.

device_auto_rotate_checker #

A flutter plugin to check if device auto rotate is on or off.

Note: This plugin only supports Android. there is no way to check auto rotate on iOS.

Usage #

Example:

import 'package:device_auto_rotate_checker/device_auto_rotate_checker.dart';

bool autoRotate = await DeviceAutoRotateChecker.checkAutoRotate();

Listen to the device's auto rotate settings change:

import 'package:device_auto_rotate_checker/device_auto_rotate_checker.dart';

DeviceAutoRotateChecker.autoRotateStream.listen((bool autoRotate) {
  print('auto rotate is: $autoRotate');
});
1
likes
160
pub points
57%
popularity

Publisher

unverified uploader

A flutter plugin to check if device auto rotate is on or off.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on device_auto_rotate_checker