Skip to content

Show default flag values for flutter config #81665

Closed

Description

@Zazo032

Use case

Currently, running flutter config lists all available flags, but not its value or default value. For example:

--[no-]enable-web                            Enable or disable Flutter for web. This setting will take effect on the
                                                 master, dev, beta, and stable channels.
                                                 setting will take effect on the master, dev, beta, and stable channels.
                                                 Newer beta versions are available on the beta channel.

Proposal

Add some text to show the default value of the flag, for example:

--[no-]enable-web                            Enable or disable Flutter for web. This setting will take effect on the
                                                 master, dev, beta, and stable channels.
                                                 setting will take effect on the master, dev, beta, and stable channels.
                                                 Newer beta versions are available on the beta channel.
                                                 Defaults to `false`.

Activity

  1. added
    in triagePresently being triaged by the triage team
    c: proposalA detailed proposal for a change to Flutter
    c: new featureNothing broken; request for a new capability
    toolAffects the "flutter" command-line tool. See also t: labels.
    and removed
    in triagePresently being triaged by the triage team
    on May 3, 2021
  2. jmagman commented on May 17, 2021

    @jmagman
    Member

    @Zazo032 If you look at the bottom of the flutter config output you should see the current values of the configs that are set, so you don't need the Current value is "true". part (and we wouldn't include that dynamic lookup in help output, which is what the top part is).

    Settings:
      ios-signing-cert: Apple Development (123456)
      enable-web: true
      enable-linux-desktop: true
      enable-macos-desktop: true
      enable-windows-desktop: true
      enable-android: true
    

    But fair point about not knowing what the default values are.

  3. pedromassangocode commented on May 18, 2021

    @pedromassangocode

    @jmagman should this issue focus on update the help output to include the default values? I yes, then maybe we need to update the title. Right now I'm not sure what would be the fix for this.

  4. changed the title [-]Show flag values for `flutter config`[/-] [+]Show default flag values for `flutter config`[/+] on May 18, 2021
  5. Zazo032 commented on May 18, 2021

    @Zazo032
    ContributorAuthor

    I updated the issue. Having the default values on each flag description would be perfect, and with them there's no need to also show current values, as @jmagman said

  6. darshankawar commented on Oct 7, 2022

    @darshankawar
    Member

    The original use case occurs using latest versions. Keeping this issue open.

  7. added
    P3Issues that are less important to the Flutter project
    triaged-toolTriaged by Flutter Tool team
    on Aug 21, 2023
  8. self-assigned this
    on Jul 10, 2025
  9. added
    tool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.
    on Jul 10, 2025
  10. added
    r: fixedIssue is closed as already fixed in a newer version
    on Jul 22, 2025
  11. github-actions commented on Aug 5, 2025

    @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.

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

Metadata

Metadata

Assignees

Labels

P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterr: fixedIssue is closed as already fixed in a newer versionteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.tool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.triaged-toolTriaged by Flutter Tool team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions