Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 530 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 530 Bytes

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