What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-03 06:17:18
use env flutter
You can do that by inserting in the .env file: HOST=localhost PORT=3000 Add the .env file in the assets section of the pubspec.yaml: assets: - .env Then, you can change the main function in the main.dart to load the .env file: Future main() async {... Add solution
Best helpers
Ranking is empty