Roll engine to 57f53b98a482c6f7f921f06f974c4d199097bfa1 (#17362)

This commit is contained in:
Jonah Williams 2018-05-07 18:24:29 -07:00 committed by GitHub
parent de332ec782
commit cb7afc4a63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -1 +1 @@
e976be13c51448f89107d082ec81e2b6731671fa
57f53b98a482c6f7f921f06f974c4d199097bfa1

View file

@ -193,9 +193,14 @@ class SystemChrome {
scheduleMicrotask(() {
assert(_pendingStyle != null);
if (_pendingStyle != _latestStyle) {
// TODO(jonahwilliams): remove when rolling chrome change.
SystemChannels.platform.invokeMethod(
'SystemChrome.setSystemUIOverlayStyle',
_pendingStyle.toString(),
<String, dynamic>{
'statusBarBrightness': _pendingStyle == SystemUiOverlayStyle.light
? 'Brightness.light'
: 'Brightness.dark',
}
);
_latestStyle = _pendingStyle;
}