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 |