native_device_orientation 2.0.3 copy "native_device_orientation: ^2.0.3" to clipboard
native_device_orientation: ^2.0.3 copied to clipboard

A Flutter plugin for reading device's native orientation, either from UI orientation or from sensors

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add native_device_orientation

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

dependencies:
  native_device_orientation: ^2.0.3

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:native_device_orientation/native_device_orientation.dart';
135
likes
140
points
77.9k
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for reading device's native orientation, either from UI orientation or from sensors

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on native_device_orientation