Skip to content

Commit

Permalink
swap brightness definition on iOS to match android (flutter#5239)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahwilliams authored May 11, 2018
1 parent 983b119 commit 87da608
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ - (void)setSystemChromeEnabledSystemUIOverlays:(NSArray*)overlays {
- (void)setSystemChromeSystemUIOverlayStyle:(NSDictionary*)message {
NSString* style = message[@"statusBarBrightness"];
UIStatusBarStyle statusBarStyle;
if ([style isEqualToString:@"Brightness.light"])
if ([style isEqualToString:@"Brightness.dark"])
statusBarStyle = UIStatusBarStyleLightContent;
else if ([style isEqualToString:@"Brightness.dark"])
else if ([style isEqualToString:@"Brightness.light"])
statusBarStyle = UIStatusBarStyleDefault;
else
return;
Expand Down

0 comments on commit 87da608

Please sign in to comment.