Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter app size is huge

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.

enter image description here I have two questions thats listed below

  1. 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?

  2. How to reduce the size of Flutter app ?

like image 392
Anas Reza Avatar asked Aug 09 '18 07:08

Anas Reza


People also ask

Why is my Flutter app so big?

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.

Is Flutter good for heavy apps?

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.

What is the download size of a minimal Flutter App?

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.

What is a flutter APK?

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.

Why are Flutter apps so big in size?

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.

What is the size of the APK or IPA built with flutter?

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.


1 Answers

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

like image 99
Manohar Avatar answered Sep 22 '22 14:09

Manohar