Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
8b9e144e
Commit
8b9e144e
authored
Oct 02, 2019
by
Josh
Committed by
Michael Goderbauer
Oct 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added notice to docs that setPreferredOrientations does not always work on iPad (#40743)
parent
f8310d89
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
system_chrome.dart
packages/flutter/lib/src/services/system_chrome.dart
+11
-0
No files found.
packages/flutter/lib/src/services/system_chrome.dart
View file @
8b9e144e
...
@@ -221,6 +221,17 @@ class SystemChrome {
...
@@ -221,6 +221,17 @@ class SystemChrome {
/// The `orientation` argument is a list of [DeviceOrientation] enum values.
/// The `orientation` argument is a list of [DeviceOrientation] enum values.
/// The empty list causes the application to defer to the operating system
/// The empty list causes the application to defer to the operating system
/// default.
/// default.
///
/// ## Limitations
///
/// This setting will only be respected on iPad if multitasking is disabled.
///
/// You can decide to opt out of multitasking on iPad, then
/// setPreferredOrientations will work but your app will not
/// support Slide Over and Split View multitasking anymore.
///
/// Should you decide to opt out of multitasking you can do this by
/// setting "Requires full screen" to true in the Xcode Deployment Info.
static
Future
<
void
>
setPreferredOrientations
(
List
<
DeviceOrientation
>
orientations
)
async
{
static
Future
<
void
>
setPreferredOrientations
(
List
<
DeviceOrientation
>
orientations
)
async
{
await
SystemChannels
.
platform
.
invokeMethod
<
void
>(
await
SystemChannels
.
platform
.
invokeMethod
<
void
>(
'SystemChrome.setPreferredOrientations'
,
'SystemChrome.setPreferredOrientations'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment