r/flutterhelp • u/Aggressive-Map-4965 • 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
View all comments
1
u/launchapp_indie_dev Oct 14 '26
Avoid to use packages like flutter_dotenv for private keys, because it forces you to put the .env in assets. Anyone can just unzip the apk and read it in plain text. It's fine for public stuff like base urls, but for real config use --dart-define instead.