Skip to content

Support a light/dark mode toggle (from the command line and IDEs) #59495

Closed

Description

@jonahwilliams

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:

  1. Add a framework service extension which overrides the Binding value of Brightness, similar to how the platform toggle does it.
  2. Add a CLI option to toggle the brightness (b?) and wire it up.
  3. For each IDE, expose functionality (as appropriate) to toggle the brightness. This would be left up to the owners of devtools, Intellij, and VSCode

Activity

  1. added
    toolAffects the "flutter" command-line tool. See also t: labels.
    a: qualityA truly polished experience
    P2Important issues not at the top of the work list
    on Jun 15, 2020
  2. added a commit that references this issue on Jun 18, 2020
    e1f4cfb
  3. added a commit that references this issue on Jun 22, 2020
    c342e79
  4. added a commit that references this issue on Sep 6, 2020
    5bc2234
  5. github-actions commented on Aug 19, 2021

    @github-actions

    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.

  6. locked as resolved and limited conversation to collaborators on Aug 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: qualityA truly polished experiencetoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions