Bhavesh Oswal
Bhavesh Oswal

Reputation: 1

Is there any way to reduce flutter app size

My query is regarding Flutter App Size I am building an application currently only for android user So can i remove the entire IOS folder thing (😅i am beginner so please do not bother if it seems silly) Or any other alternative to reduce app size Thank you.

Upvotes: -1

Views: 154

Answers (2)

SLendeR
SLendeR

Reputation: 947

I believe you are a little bit confused on this one. When you are developing an app your application folder might weight a lot depending on packages and assets you are using but when you are building and releasing an Android app the development kit will only use the necessary files and export a very tiny sized appbundle compared to your development folder.

Example they are the same application;

  1. Left side is built Android app

  2. Right side is development folder

enter image description here

Upvotes: 0

Sergio Clemente
Sergio Clemente

Reputation: 888

The best way is build bundle

flutter build appbundle

Or build apk and split

flutter build apk --split-per-abi

When u split the apk the Android build three differents apk (separated by arch).

This reduce the apk size

https://developer.android.com/platform/technology/app-bundle

Upvotes: 1

Related Questions