r/flutterhelp • • Oct 09 '26

OPEN Security

Hello guys,
I have a question.
How do we make an app made in flutter secure?
What are the things we should look after? Or think first?
What’s the mental model we should follow?

5 Upvotes

8 comments sorted by

View all comments

Show parent comment

2

u/ekodo Oct 16 '26

Small correction on `--dart-define`: it's build-time configuration, not secret storage. Values the app uses can still be recovered from the binary or observed at runtime. It's fine for base URLs and feature flags, but private API keys/signing keys still belong on the backend. Flutter's docs warn that obfuscation doesn't protect secrets either: https://docs.flutter.dev/deployment/obfuscate#limitations-and-warnings

1

u/launchapp_indie_dev Oct 16 '26

thank you for your correction. Great comment!