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
37c10acb
Unverified
Commit
37c10acb
authored
Oct 03, 2018
by
Gary Qian
Committed by
GitHub
Oct 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use 'Future<void>' insted of 'Future<Null>' in SystemChrome (#22583)
parent
8d76d37f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
system_chrome.dart
packages/flutter/lib/src/services/system_chrome.dart
+4
-4
No files found.
packages/flutter/lib/src/services/system_chrome.dart
View file @
37c10acb
...
...
@@ -237,7 +237,7 @@ class SystemChrome {
/// The `orientation` argument is a list of [DeviceOrientation] enum values.
/// The empty list causes the application to defer to the operating system
/// default.
static
Future
<
Null
>
setPreferredOrientations
(
List
<
DeviceOrientation
>
orientations
)
async
{
static
Future
<
void
>
setPreferredOrientations
(
List
<
DeviceOrientation
>
orientations
)
async
{
await
SystemChannels
.
platform
.
invokeMethod
(
'SystemChrome.setPreferredOrientations'
,
_stringify
(
orientations
),
...
...
@@ -249,7 +249,7 @@ class SystemChrome {
///
/// Any part of the description that is unsupported on the current platform
/// will be ignored.
static
Future
<
Null
>
setApplicationSwitcherDescription
(
ApplicationSwitcherDescription
description
)
async
{
static
Future
<
void
>
setApplicationSwitcherDescription
(
ApplicationSwitcherDescription
description
)
async
{
await
SystemChannels
.
platform
.
invokeMethod
(
'SystemChrome.setApplicationSwitcherDescription'
,
<
String
,
dynamic
>{
...
...
@@ -281,7 +281,7 @@ class SystemChrome {
/// after a delay of 1 second. This can be achieved through [restoreSystemUIOverlays]
/// or calling this again. Otherwise, the original UI overlay settings will be
/// automatically restored only when the application loses and regains focus.
static
Future
<
Null
>
setEnabledSystemUIOverlays
(
List
<
SystemUiOverlay
>
overlays
)
async
{
static
Future
<
void
>
setEnabledSystemUIOverlays
(
List
<
SystemUiOverlay
>
overlays
)
async
{
await
SystemChannels
.
platform
.
invokeMethod
(
'SystemChrome.setEnabledSystemUIOverlays'
,
_stringify
(
overlays
),
...
...
@@ -297,7 +297,7 @@ class SystemChrome {
///
/// On Android, the system UI cannot be changed until 1 second after the previous
/// change. This is to prevent malware from permanently hiding navigation buttons.
static
Future
<
Null
>
restoreSystemUIOverlays
()
async
{
static
Future
<
void
>
restoreSystemUIOverlays
()
async
{
await
SystemChannels
.
platform
.
invokeMethod
(
'SystemChrome.restoreSystemUIOverlays'
,
null
,
...
...
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