How to use Environment Variables in Flutter with flutter_dotenv

Опубликовано: 01 Январь 1970
на канале: Paul Halliday
22,721
458

Learn more about flutter_dotenv: https://developer.school/tutorials/ho...

In this tutorial, you will learn how to use environment variables with Flutter. Environment variables are a set of parameters that help the system understand the running environment and tailor its behaviour accordingly.

These values can be used as input for your application and make it easy to configure your application across development, staging and production versions.

You'll be using the flutter_dotenv package to achieve this.

Timestamps:

0:00 Introduction
0:30 Install flutter_dotenv
1:05 Create a .env file
2:00 Add the .env file to .gitignore
2:16 Creating a .env.example file
2:50 Load the environment variables into the app
3:50 Using an environment variable
5:08 Alternative access method
6:00 Creating production/development variables
7:05 Loading production/development variables
8:18 Creating statically typed variables
9:45 Using statically typed variables
10:45 Adding production/development variables to .gitignore

Social links:
https://developer.school

Themes, recording software, font, and other questions:
https://developer.school/uses

Feedback?
https://developer.school/feedback


На этой странице сайта вы можете посмотреть видео онлайн How to use Environment Variables in Flutter with flutter_dotenv длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Paul Halliday 01 Январь 1970, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 22,721 раз и оно понравилось 458 зрителям. Приятного просмотра!