Skip to content

Add .env format file support for --dart-define-from-file option #128667

@PiotrFLEURY

Description

@PiotrFLEURY

Is there an existing issue for this?

Use case

Json configuration file path can be specified to the flutter command using the --dart-define-from-file option.

Json format is good but most of the framework mostly use also .env files

Why do not use .env files like many frameworks do ?

Proposal

I suggest to make possible to specify .env files to the --dart-define-from-filein addition to the Json format.

Usage

flutter run --dart-define-from-file=.env

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: 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 versiontoolAffects 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