VSCode launch configurations¶
Want to quickly switch between multiple flavors/targets/environments in your Flutter apps?
Just add a .vscode/launch.json file with custom arguments for each configuration.
This lets you set environment variables as key=value pairs using --dart-define:
Then, in your Flutter code, you can read all the environment variables using String.fromEnvironment():
| Previous | Next |
|---|---|
| Domain-Driven Exception Handling | How to use the Flutter Widget Inspector |
Last update:
18 septembre 2023
Created: 18 septembre 2023
Created: 18 septembre 2023

