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

A flutter plugin for rotate device orientation.

flutter_orientation #

A flutter plugin for rotate device orientation.

Getting Started #

ios

you need add supported orientations you will use in future

<key>UISupportedInterfaceOrientations</key>
<array>
    <string>UIInterfaceOrientationPortrait</string>
    <string>UIInterfaceOrientationLandscapeRight</string>
</array>

Usage #

flutter_orientation: ^newest
import 'package:flutter_orientation/flutter_orientation.dart';


FlutterOrientation.setOrientation(DeviceOrientation.portraitUp);
0
likes
110
pub points
39%
popularity

Publisher

unverified uploader

A flutter plugin for rotate device orientation.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_orientation