Closed
Description
The env variables defined in the host system are not passed to the dartvm.
Example:
void main() {
final String user = Platform.environment['USER'];
print(user);
}
This will output null.
Since you can't build a bundle with --dart-define
, there is any way to pass a env variable to the flutter app?
Metadata
Metadata
Assignees
Labels
No labels