Skip to content

Commit

Permalink
feat: landscape #319
Browse files Browse the repository at this point in the history
  • Loading branch information
lucien144 committed Jun 8, 2022
1 parent a5d9e38 commit 77dffb4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
<string>????</string>
<key>CFBundleVersion</key>
<string>$(FLUTTER_BUILD_NUMBER)</string>
<key>K nahrání nebo uložení obrázku je potřeba povolit přístup k fotkám.</key>
<string>Light</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSCameraUsageDescription</key>
Expand All @@ -28,8 +30,11 @@
<string>K nahrání videa se zvukem je potřeba povolit přístup k mikrofónu.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>K nahrání nebo uložení obrázku je potřeba povolit přístup k fotkám.</string>
<key>K nahrání nebo uložení obrázku je potřeba povolit přístup k fotkám.</key>
<string>Light</string>
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
<false/>
</dict>
<key>UIBackgroundModes</key>
<array>
<string>fetch</string>
Expand All @@ -42,6 +47,8 @@
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
Expand Down
2 changes: 1 addition & 1 deletion lib/FyxApp.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class FyxApp extends StatefulWidget {
}

SystemUiOverlayStyle(statusBarBrightness: Brightness.light);
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp, DeviceOrientation.portraitDown]);
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp, DeviceOrientation.landscapeLeft, DeviceOrientation.landscapeRight]);

// TODO: Move to build using FutureBuilder.
var results = await Future.wait([ApiController().getCredentials(), PackageInfo.fromPlatform(), DeviceInfo.init(), SettingsProvider().init()]);
Expand Down

0 comments on commit 77dffb4

Please sign in to comment.