lock_orientation 0.0.2 copy "lock_orientation: ^0.0.2" to clipboard
lock_orientation: ^0.0.2 copied to clipboard

This library locks device's orientation (like PortraitUp,LandscapeLeft,LandscapeRight) and give you current orientation.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add lock_orientation

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

dependencies:
  lock_orientation: ^0.0.2

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:lock_orientation/lock_orientation.dart';
0
likes
130
points
19
downloads

Publisher

unverified uploader

Weekly Downloads

This library locks device's orientation (like PortraitUp,LandscapeLeft,LandscapeRight) and give you current orientation.

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on lock_orientation

Packages that implement lock_orientation