-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[all] Update UIViewControllerBasedStatusBarAppearance to true #4225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[all] Update UIViewControllerBasedStatusBarAppearance to true #4225
Conversation
can you explain more about this flag and the future plan (if any)? |
What effect does this have prior to your PR landing (e.g., if someone runs the examples on |
Actually, the status bar hide feature won't work on stable. I think we can still migrate now in this repository because I don't see any tests are using this feature. It is easy to forget if we wait until the feature lands on stable. |
The flag is to enable ViewControllerBased status bar styling API. The UIApplication based APIs are deprecated in iOS 9. The default value of this flag is true, meaning if info.plist does not have this flag, the value is true. To disable ViewControllerBased status bar styling, the app needs to explicitly declare this flag in info.plist and set it to false. Flutter app explicitly declared the flag to be false and used deprecated UIApplication APIs due to historical reasons that I'm not entirely sure but I think it is safe to flip the flag now. There are no future plans. The project is done once the flag is flipped. The only thing I'd say is that we need to monitor to see if there are new related issues filed. |
does a new xcode project contain this flag? should we just remove this flag? |
New project does not have this flag. Yeah, removing is the same as making it to true. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, although it seems like removing it might be preferable so we're not keeping cruft in the plist forever. Either way is fine though.
Updated to removing the flags |
Overriding changelog: this change isn't interesting to plugin clients. |
flutter/packages@59d93d6...6e1918f 2023-06-19 [email protected] [all] Update UIViewControllerBasedStatusBarAppearance to true (flutter/packages#4225) 2023-06-17 [email protected] Add missing ignores for `textScaleFactor` deprecation (flutter/packages#4239) 2023-06-17 [email protected] [url_launcher] Remove deprecated onPlatformMessage calls (flutter/packages#4233) 2023-06-17 [email protected] [ci] Add LUCI version of build-all for web (flutter/packages#4232) 2023-06-16 [email protected] [ci] Introduce LUCI version of Linux build-all-packages tests (flutter/packages#4229) 2023-06-16 [email protected] Roll Flutter from b0188cd to fc8856e (14 revisions) (flutter/packages#4231) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Now that we support UIViewControllerBasedStatusBar by default (after engine roll: flutter/flutter@c716776), we should make this value to be true.
Part of flutter/flutter#128969
Pre-launch Checklist
dart format
.)[shared_preferences]
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.md
to add a description of the change, following repository CHANGELOG style.///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.