Skip to content

Support dart defines in index.html #127853

@kodal

Description

@kodal

Is there an existing issue for this?

Use case

For now it supports in Android (Gradle) and iOS(Info.plist) platforms to get --dart-defined variables.
But not supported in Flutter Web (index.html)

Proposal

Replaceable ${DART_DEFINED_VAR} in index.html like:

<meta name="google-signin-client_id" content="${GOOGLE_SIGN_IN_WEB_CLIENT_ID}">
...
<title>${APP_NAME}</title>

Metadata

Metadata

Assignees

No one assigned

    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 Flutterplatform-webWeb applications specificallyteam-webOwned by Web platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-webTriaged by Web platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions