Skip to content

Latest commit

History

History
50 lines (30 loc) 路 1.4 KB

File metadata and controls

50 lines (30 loc) 路 1.4 KB

Environment variables in Dart

Did you know?

As an alternative to --dart-define flags, you can define environment variables in Dart.

These are useful when writing server-side apps with Dart Shelf or Dart Frog.

See below for how to configure them on the server. 馃У


When you deploy your server-side app, you can set the environment variables in the settings.

This way, they can be read and used correctly when your server processes incoming requests from your Flutter client.


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


Previous Next
Determinate Circular Progress Indicator Preloading SVG assets in Flutter