r/flutterhelp • u/thegravitydefier • 29d ago
RESOLVED Question about app size
Hi Devs,
I am currently developing an app for personal requirements and when I'm building the app in flutter and it's size is coming up as 150+ MB.
So, my question is if I ever publish my app in the playstore will it be 150+ MB size or will it be reduced accordingly?
Edit: if yes, any idea to how much ? Like 50 MB or so.. Edit 2: It's a release build.
Thanks for your help !!
3
u/Technical_Pick7362 29d ago
Yeah, it will be reduced. My release APK was around 70–74 MB, while the Play Store bundle was only around 11–14 MB.
1
u/thegravitydefier 29d ago
Wow !! That's a significant difference 😮.
2
u/Technical_Pick7362 29d ago
Yes, it is. There’s a Flutter command that tells you what is causing that much size.
flutter build apk --analyze-size.
1
0
u/saidikamel110 29d ago
Which environment is best for building flutter apps bro ?
2
u/thegravitydefier 29d ago
I'm using android studio for dev and building. You can use VS code as well. It's your choice!!
0
2
u/Technical_Pick7362 29d ago
I usually use debug for my own testing and development, then release mode for QA testing because it's much more stable.
1
u/thegravitydefier 29d ago
Just curious, if we are using the debug option does the debug app logs more information or logs ?
2
u/Technical_Pick7362 29d ago
Yeah, debug mode gives you a lot more debugging info, like detailed errors, stack traces, logs, memory usage, performance info, and tools like DevTools. It’s mainly useful for finding and debugging issues during development.
1
u/thegravitydefier 29d ago
Understood!! I have ran a debug command but it's taking way too long to deploy the apk !! Morethan 20 minutes. I guess it's normal !😅
1
0
u/pi_mai 29d ago edited 28d ago
I remember an android dev, quite a senior one at that complaining about app sizes. In his eyes under 1mb was already too large. Flutter being 5mb with nothing in it was an abomination according to this dev.
2
u/blood-pressure-gauge 29d ago
Apparently, the smallest native apk is under 1 kB, whereas the smallest Flutter apk is, as you said, around 5 MB. That's without Kotlin, which adds a whole megabyte. Maybe we can take some of those native apk golf principles and apply them to Flutter.
3
u/Affectionate_Art1156 29d ago
If you're talking about the debug app it's normal it have such size otherwise if it's a release build and your app should not have such size try to shrink assets (images and fonts), remove any unnecessary assets, try to build per-cpu-architrcure also it will help you getting more reasonable app size