Skip to content

Commit aeb9ee3

Browse files
authored
Revert "Use iOS 13 dark content status bar style (flutter#13119)"
This reverts commit fdba8f6.
1 parent 52e3505 commit aeb9ee3

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

shell/platform/darwin/ios/framework/Source/FlutterPlatformPlugin.mm

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -166,22 +166,17 @@ - (void)restoreSystemChromeSystemUIOverlays {
166166
}
167167

168168
- (void)setSystemChromeSystemUIOverlayStyle:(NSDictionary*)message {
169-
NSString* brightness = message[@"statusBarBrightness"];
170-
if (brightness == (id)[NSNull null])
169+
NSString* style = message[@"statusBarBrightness"];
170+
if (style == (id)[NSNull null])
171171
return;
172172

173173
UIStatusBarStyle statusBarStyle;
174-
if ([brightness isEqualToString:@"Brightness.dark"]) {
174+
if ([style isEqualToString:@"Brightness.dark"])
175175
statusBarStyle = UIStatusBarStyleLightContent;
176-
} else if ([brightness isEqualToString:@"Brightness.light"]) {
177-
if (@available(iOS 13, *)) {
178-
statusBarStyle = UIStatusBarStyleDarkContent;
179-
} else {
180-
statusBarStyle = UIStatusBarStyleDefault;
181-
}
182-
} else {
176+
else if ([style isEqualToString:@"Brightness.light"])
177+
statusBarStyle = UIStatusBarStyleDefault;
178+
else
183179
return;
184-
}
185180

186181
NSNumber* infoValue = [[NSBundle mainBundle]
187182
objectForInfoDictionaryKey:@"UIViewControllerBasedStatusBarAppearance"];

0 commit comments

Comments
 (0)