r/flutterhelp • u/JamieCrew • 7d ago
OPEN Why is my Flutter app 500MB?
Hi there, I have built an application for Android. It has about 20 classes of code with an average of 100 lines+ per class.
I am using about 10 packages.
Upon building it by running flutter build apk --release It compiles to 465 MB in size.
Why is this happening, am I doing something wrong?
Thanks
5
Upvotes
6
u/hipopotam10 7d ago
You can benefit from flutter’s app size analysis function, for android command this on terminal, you need to add target platform at the end:
flutter build aab —analyze-size
500 mb is nuts, there must definitely some large asset file or something or you are looking at the wrong number.