Unverified Commit cb7afc4a authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

Roll engine to 57f53b98a482c6f7f921f06f974c4d199097bfa1 (#17362)

parent de332ec7
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment