native_device_orientation 1.2.1 copy "native_device_orientation: ^1.2.1" to clipboard
native_device_orientation: ^1.2.1 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: ^1.2.1

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';
141
likes
150
points
113k
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, meta

More

Packages that depend on native_device_orientation