I am an Android app Developer using java, and I have come to know about Flutter using dart language created by Google. I found it quite intresting and because it builds the app for both Android and ios. I have created a simple TabsLayout Application for Android, the size of the Application 27MB, please have a look at the screenshot of the simple TabLayout Flutter App.
I have two questions thats listed below
I have seen that the Flutter app has size of more than 25 MB, so why the Flutter app is taking huge size after developing?
How to reduce the size of Flutter app ?
By default, launching your app with flutter run , or by clicking the Play button in your IDE (as used in Test drive and Write your first Flutter app), generates a debug build of the Flutter app. The app size of a debug build is large due to the debugging overhead that allows for hot reload and source-level debugging.
Of course, you can also create your own components, and for this, Flutter is truly excellent. Creating good looking custom UI elements is very easy, and you will have them working on both Android and iOS. This makes Flutter a perfect choice for mobile apps with advanced, custom UI designs.
the download size of a minimal Flutter app (no Material Components, just a single Center widget, built with flutter build apk --split-per-abi ), bundled and compressed as a release APK, to be approximately 4.3 MB for ARM, and 4.6 MB for ARM 64.
As the APK, app bundle, or IPA version of a Flutter app is self-contained and holds all the code and assets needed to run the app, its size can be a concern. The larger an app, the more space it requires on a device, the longer it takes to download, and it may break the limit of useful features like Android instant apps.
You should be aware that a flutter app contains the whole runtime, so there is no dependency of a specific Android SDK version (except for plugins), therefore bigger size is inevitable. Flutter is not even 1.0. The Flutter team is aware of the size and mentioned that they'll address that later.
Yes ofcourse, the size of the apk or ipa built with flutter will be minimum of ~7mb for a hello world app. This is because, flutter ships a core engine, framework, ICU data, LICENSE file etc with its build output which are mandatory for a flutter app to run. You can check out the FAQ here to know more about what takes how much size when build.
The debug
app will be larger in size , but your release
app should be smaller in size approximately 7-8 MB . Minimum size of app itself is 4.7Mb see this , It is still larger compared to native app but cannot expect any thing better from cross platform
Check this documentation
Edit:- The minimum size is now down to 4.06 MB
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With