flutter-template
flutter-template copied to clipboard
Standardized way of injecting secrets
I think this raises a security issue if we're planning on adding sensitive data to the .env file because the .env will be included in the app bundle.
However it's still better than adding the secrets to the code itself, because now production secrets will be hidden from devs.
The ultimate solution would be not to store secrets on FE at all, and store them on BE instead.
https://github.com/java-james/flutter_dotenv/issues/51#issuecomment-1040908470
Another candidate proposed by Pritam: https://pub.dev/packages/envied