Skip to content

flutter-package/flutter_orientation

Repository files navigation

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);