Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@matthew-carroll
Copy link
Contributor

@matthew-carroll matthew-carroll commented Jan 15, 2019

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.

A platformBrightness property is added to the existing user platform settings channel. FlutterView sends the initial value for platformBrightness and also sends updates whenever configuration changes.

There is a corresponding framework PR here:
flutter/flutter#26605

@jason-simmons @cbracken @amirh - This PR introduces some small pieces of the Android embedding refactor because they were related to the work that already needed to be done in this PR.

@matthew-carroll matthew-carroll force-pushed the 25525_android-dark-mode branch from cb1dc1a to 6ec002c Compare February 5, 2019 02:05
@matthew-carroll matthew-carroll merged commit cc27caf into flutter:master Feb 5, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 5, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 5, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 5, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 5, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 5, 2019
matthew-carroll pushed a commit to matthew-carroll/flutter that referenced this pull request Feb 5, 2019
cc27caf Implemented Dark Mode for Android (flutter#25525) ([flutter/engine#7488](flutter/engine#7488))
9c05cbc Roll src/third_party/dart b53dceadaa..5823be65af (5 commits) 5823be65af [vm/compiler] Continued graph checker development (reland) 8231cdb7a3 [gardening] Update status for issue 35854 db7f848632 [vm] Remove dead BigInt code. 35ab1755f4 Support more type propagation for code-as-ui features 569ee07f91 [vm] Cleanup class finalization checks
ec5e6f6 Ensure dart2js and kernel worker snapshots are copied out of gen dir ([flutter/engine#7692](flutter/engine#7692))
8b5fa65 Roll src/third_party/skia 50ea3c06b80f..2d35a1c87553 (6 commits) ([flutter/engine#7693](flutter/engine#7693))
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 5, 2019
matthew-carroll added a commit to flutter/flutter that referenced this pull request Feb 5, 2019
* Bugfix: Add platformBrightness to TestWindow.

* Manual engine roll:

cc27caf Implemented Dark Mode for Android (#25525) ([flutter/engine#7488](flutter/engine#7488))
9c05cbc Roll src/third_party/dart b53dceadaa..5823be65af (5 commits) 5823be65af [vm/compiler] Continued graph checker development (reland) 8231cdb7a3 [gardening] Update status for issue 35854 db7f848632 [vm] Remove dead BigInt code. 35ab1755f4 Support more type propagation for code-as-ui features 569ee07f91 [vm] Cleanup class finalization checks
ec5e6f6 Ensure dart2js and kernel worker snapshots are copied out of gen dir ([flutter/engine#7692](flutter/engine#7692))
8b5fa65 Roll src/third_party/skia 50ea3c06b80f..2d35a1c87553 (6 commits) ([flutter/engine#7693](flutter/engine#7693))
kangwang1988 pushed a commit to XianyuTech/flutter that referenced this pull request Feb 12, 2019
* Bugfix: Add platformBrightness to TestWindow.

* Manual engine roll:

cc27caf Implemented Dark Mode for Android (flutter#25525) ([flutter/engine#7488](flutter/engine#7488))
9c05cbc Roll src/third_party/dart b53dceadaa..5823be65af (5 commits) 5823be65af [vm/compiler] Continued graph checker development (reland) 8231cdb7a3 [gardening] Update status for issue 35854 db7f848632 [vm] Remove dead BigInt code. 35ab1755f4 Support more type propagation for code-as-ui features 569ee07f91 [vm] Cleanup class finalization checks
ec5e6f6 Ensure dart2js and kernel worker snapshots are copied out of gen dir ([flutter/engine#7692](flutter/engine#7692))
8b5fa65 Roll src/third_party/skia 50ea3c06b80f..2d35a1c87553 (6 commits) ([flutter/engine#7693](flutter/engine#7693))
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants