device_orientation 1.0.0 copy "device_orientation: ^1.0.0" to clipboard
device_orientation: ^1.0.0 copied to clipboard

Check how the device is rotated even if system rotation is disabled and make sure widgets are always pointing down.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add device_orientation

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  device_orientation: ^1.0.0

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:device_orientation/device_orientation.dart';
11
likes
140
pub points
86%
popularity

Publisher

verified publisherwrbl.xyz

Check how the device is rotated even if system rotation is disabled and make sure widgets are always pointing down.

Repository (GitLab)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, sensors_plus

More

Packages that depend on device_orientation