mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Add NSNull check in setSystemChromeSystemUIOverlayStyle (#6011)
This commit is contained in:
parent
7ec5f8ada4
commit
6e780fdc67
@ -140,6 +140,9 @@ using namespace shell;
|
||||
|
||||
- (void)setSystemChromeSystemUIOverlayStyle:(NSDictionary*)message {
|
||||
NSString* style = message[@"statusBarBrightness"];
|
||||
if (style == (id)[NSNull null])
|
||||
return;
|
||||
|
||||
UIStatusBarStyle statusBarStyle;
|
||||
if ([style isEqualToString:@"Brightness.dark"])
|
||||
statusBarStyle = UIStatusBarStyleLightContent;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user