You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support a light/dark mode toggle (from the command line and IDEs) #59495
A frequent request from the last Flutter developer survey was for an easier method of testing light/dark mode changes. Currently, a user needs to manually change the theme settings or adjust phone settings to see the difference. Instead we should add a toggle from the CLI, and eventually devtools/Intellij/Vscode that allows developers to override the current setting.
This can be implemented in several parts:
Add a framework service extension which overrides the Binding value of Brightness, similar to how the platform toggle does it.
Add a CLI option to toggle the brightness (b?) and wire it up.
For each IDE, expose functionality (as appropriate) to toggle the brightness. This would be left up to the owners of devtools, Intellij, and VSCode
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
[flutter_tools] add toggle `b` and service extension to change platfo…
[flutter_tools] add toggle `b` and service extension to change platfo…
[flutter_tools] add toggle `b` and service extension to change platfo…
github-actions commentedon Aug 19, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.