mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +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(() {
|
scheduleMicrotask(() {
|
||||||
assert(_pendingStyle != null);
|
assert(_pendingStyle != null);
|
||||||
if (_pendingStyle != _latestStyle) {
|
if (_pendingStyle != _latestStyle) {
|
||||||
|
// TODO(jonahwilliams): remove when rolling chrome change.
|
||||||
SystemChannels.platform.invokeMethod(
|
SystemChannels.platform.invokeMethod(
|
||||||
'SystemChrome.setSystemUIOverlayStyle',
|
'SystemChrome.setSystemUIOverlayStyle',
|
||||||
_pendingStyle.toString(),
|
<String, dynamic>{
|
||||||
|
'statusBarBrightness': _pendingStyle == SystemUiOverlayStyle.light
|
||||||
|
? 'Brightness.light'
|
||||||
|
: 'Brightness.dark',
|
||||||
|
}
|
||||||
);
|
);
|
||||||
_latestStyle = _pendingStyle;
|
_latestStyle = _pendingStyle;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user