mirror of
https://github.com/flutter/flutter
synced 2024-09-21 09:11:56 +00:00
Roll engine to 57f53b98a482c6f7f921f06f974c4d199097bfa1 (#17362)
This commit is contained in:
parent
de332ec782
commit
cb7afc4a63
|
@ -1 +1 @@
|
|||
e976be13c51448f89107d082ec81e2b6731671fa
|
||||
57f53b98a482c6f7f921f06f974c4d199097bfa1
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue