Implemented Dark Mode for Android (#25525)#26605
Implemented Dark Mode for Android (#25525)#26605matthew-carroll merged 12 commits intoflutter:masterfrom
Conversation
|
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.
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.
LGTM if it looks good to @xster and @HansMuller as well.
|
Looks like cirrus is not too happy, though. |
…a SemanticsHandle and it was unclear how to do that.
HansMuller
left a comment
There was a problem hiding this comment.
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.