-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Implemented Dark Mode for Android (#25525) #26605
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
Implemented Dark Mode for Android (#25525) #26605
Conversation
xster
left a comment
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.
LG. Please add tests
|
specifically re tests:
In general, I think it's a good idea to run |
HansMuller
left a comment
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.
This looks good, just some small requests.
|
@HansMuller @goderbauer @xster - I just pushed a number of updates based on comments. Can you all do another pass? |
goderbauer
left a comment
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 if it looks good to @xster and @HansMuller as well.
|
Looks like cirrus is not too happy, though. |
xster
left a comment
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. Thanks for adding tests.
…a SemanticsHandle and it was unclear how to do that.
HansMuller
left a comment
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 with a few suggestions
|
@matthew-carroll How can I change the The |
|
@creativecreatorormaybenot can you please file this question as an issue instead of a PR comment? Also, can you please include as much of your actual code as possible? I need to see exactly what you're doing to be able to comment. |
Starting in Android Pie, when battery saver is on, or when the developer option for "Night Mode" is enabled, Android apps should show a dark styled UI. This PR introduces this behavior to Flutter.
This is the framework half of the change. The engine PR here is here:
flutter/engine#7488
On the framework side, this PR integrates the new
platformBrightnessproperty into MediaQuery and then binds WidgetsApp to that property so that the widget hierarchy rebuilds on change to brightness.Supporting Flutter changes for brightness required adding uiMode to the Android manifest under overridden configuration changes for FlutterActivity.