Skip to content

flutter build --flavor does not work #12248

@crcdng

Description

@crcdng

Page URL

https://docs.flutter.dev/deployment/flavors/

Page source

https://github.com/flutter/website/tree/main/src/content/deployment/flavors.md

Describe the problem

In section "Launch a flavor", the page describes the following syntax:

flutter (run | build) --flavor <flavor_name>

However, --flavor seems to have been removed from flutter build. Adding it results in an error. flutter build --help does not list it as an option either.

Expected fix

Describe how to build for Android with a flavor (or if the removal of the option was an error, undo it)

Additional context

No response

I would like to fix this problem.

  • I will try and fix this problem on docs.flutter.dev.

Metadata

Metadata

Assignees

No one assigned

    Labels

    from.page-issueReported in a reader-filed concern

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions