From 984b70e6ad74a0509df719ee4fcf6fe311b5127a Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Fri, 11 May 2018 14:01:29 -0700 Subject: [PATCH] swap brightness definition on iOS to match android (flutter/engine#5239) --- .../darwin/ios/framework/Source/FlutterPlatformPlugin.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformPlugin.mm b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformPlugin.mm index e0a803905c..eae9e51ffa 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformPlugin.mm +++ b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformPlugin.mm @@ -140,9 +140,9 @@ using namespace shell; - (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;