From 37c10acb978009b1ee690478a31b30eb7371eb25 Mon Sep 17 00:00:00 2001 From: Gary Qian Date: Wed, 3 Oct 2018 11:14:09 -0700 Subject: [PATCH] Use 'Future' insted of 'Future' in SystemChrome (#22583) --- packages/flutter/lib/src/services/system_chrome.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/flutter/lib/src/services/system_chrome.dart b/packages/flutter/lib/src/services/system_chrome.dart index c3cf54cb28..d3e2f12210 100644 --- a/packages/flutter/lib/src/services/system_chrome.dart +++ b/packages/flutter/lib/src/services/system_chrome.dart @@ -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 setPreferredOrientations(List orientations) async { + static Future setPreferredOrientations(List 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 setApplicationSwitcherDescription(ApplicationSwitcherDescription description) async { + static Future setApplicationSwitcherDescription(ApplicationSwitcherDescription description) async { await SystemChannels.platform.invokeMethod( 'SystemChrome.setApplicationSwitcherDescription', { @@ -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 setEnabledSystemUIOverlays(List overlays) async { + static Future setEnabledSystemUIOverlays(List 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 restoreSystemUIOverlays() async { + static Future restoreSystemUIOverlays() async { await SystemChannels.platform.invokeMethod( 'SystemChrome.restoreSystemUIOverlays', null,