Skip to content
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

Fix regression in system UI colors #28206

Merged
merged 2 commits into from
Aug 20, 2021
Merged

Conversation

Piinks
Copy link
Contributor

@Piinks Piinks commented Aug 19, 2021

Fixes flutter/flutter#88431

This fixes a regression introduced in #27018. The refactored style portion made color changes dependent on brightness not being null.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt. See testing the engine for instructions on
    writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

if (systemChromeStyle.statusBarIconBrightness != null) {
switch (systemChromeStyle.statusBarIconBrightness) {
case DARK:
// View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This value was deprecated in API 30.

Do we know if this still works in Build.VERSION.SDK_INT >= 30 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, the migration should probably be in a separate change though so all of this file can be migrated.

if (systemChromeStyle.systemNavigationBarIconBrightness != null) {
switch (systemChromeStyle.systemNavigationBarIconBrightness) {
case DARK:
// View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is also deprecated.

Copy link

@blasten blasten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Piinks Piinks added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Aug 19, 2021
@fluttergithubbot fluttergithubbot merged commit 53bc600 into flutter:master Aug 20, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 20, 2021
zanderso pushed a commit to flutter/flutter that referenced this pull request Aug 20, 2021
* 53bc600 Fix regression in system UI colors (flutter/engine#28206)

* b423776 Roll Dart SDK from bc7cf49acc5c to 0f5cc29e104b (1 revision) (flutter/engine#28210)

* 6057453 Revert "Roll Fuchsia Mac SDK from 9xK8HkMEI... to EZSVwdQoz... (#28200)" (flutter/engine#28214)

* 17ddfb3 Revert "Roll Fuchsia Linux SDK from ZSqn1OAt7... to czYvw1Rk3... (#28201)" (flutter/engine#28213)
chriscraws pushed a commit to chriscraws/engine that referenced this pull request Aug 23, 2021
christopherfujino pushed a commit to christopherfujino/engine that referenced this pull request Sep 1, 2021
christopherfujino added a commit that referenced this pull request Sep 2, 2021
)

* 'Update Dart SDK to aa7d19d'

* [web] Don't reset history on hot restart (#27872)

* Makes scrollable to use main screen if the flutter view is not attached to a screen (#28110)

* Fix regression in system UI colors (#28206)

* update licenses golden

Co-authored-by: Mouad Debbar <mouad.debbar@gmail.com>
Co-authored-by: chunhtai <47866232+chunhtai@users.noreply.github.com>
Co-authored-by: Kate Lovett <katelovett@google.com>
tneotia pushed a commit to BlueBubblesApp/engine that referenced this pull request Dec 9, 2021
…tter#28415)

* 'Update Dart SDK to aa7d19d'

* [web] Don't reset history on hot restart (flutter#27872)

* Makes scrollable to use main screen if the flutter view is not attached to a screen (flutter#28110)

* Fix regression in system UI colors (flutter#28206)

* update licenses golden

Co-authored-by: Mouad Debbar <mouad.debbar@gmail.com>
Co-authored-by: chunhtai <47866232+chunhtai@users.noreply.github.com>
Co-authored-by: Kate Lovett <katelovett@google.com>
filmil pushed a commit to filmil/engine that referenced this pull request Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug (regression) cla: yes platform-android waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SystemChrome.setSystemUIOverlayStyle doesn't change colors
3 participants