Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 839 Bytes

File metadata and controls

25 lines (14 loc) · 839 Bytes

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():


Found this useful? Show some love and share the original tweet 🙏


Previous Next
Domain-Driven Exception Handling How to use the Flutter Widget Inspector