1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Flutter] Flutter App Size İncrease Too much after Updating Dependencies

Discussão em 'Mobile' iniciado por Stack, Novembro 6, 2024 às 11:54.

  1. Stack

    Stack Membro Participativo

    I create a Flutter app 2 years ago and I updated my App's flutter and gradle files and dependencies time to time but since I knew that there were problems with every update, I had not updated these files and requirements for about 1 year. I changed my computer a few weeks ago, so I had to move the code of my application to the new computer I bought. Of course, I had to install the new updated flutter version on the new computer. As a result, I also had to update the kotlin files and gradle files. When I updated them, I also had to update the outdated dependencies. Even though I struggled a lot with all these, as a result, I was able to make my application run the latest versions for each file and run it. But when I wanted to build my application, I saw that the size of my application increased from 38MB to 80MB. Since my application is also an application installed on the Google Play Store, I know that the size of an application uploaded to the market must be low due to reasons such as speed and compatibility. What could be the reason for such a large increase? Is it normal that there is an increase of approximately 40MB by just updating the files I mentioned above? If not, how can I restore it to its previous state?

    My past file 38mb is build with flutter build apk --release, my new file build with this too, to can compare same things. If you want to learn --split-per-abi for my new file it is 65MB.

    Im currently using Flutter 3.22.1, Gradle 8.4.0 and Kotlin 1.9.23.

    These are my dependencies;

    snippet_coder_utils: ^1.0.15
    flutter:
    sdk: flutter
    firebase_core: ^2.31.0
    cloud_firestore: ^4.17.3
    tab_indicator_styler: ^2.0.0
    sliding_up_panel: ^2.0.0+1
    google_fonts: ^6.2.1
    auto_size_text: ^3.0.0
    firebase_storage: ^11.7.5
    image_picker: ^1.1.1
    awesome_dialog: ^3.2.1
    firebase_auth: ^4.19.5
    rxdart: ^0.27.7
    async: ^2.11.0
    shared_preferences: ^2.2.3
    flutter_local_notifications: ^17.1.2
    firebase_messaging: ^14.9.2
    google_mobile_ads: ^5.1.0
    flutter_markdown: ^0.7.1
    flutter_typeahead: ^5.2.0
    firebase_ui_firestore: ^1.6.3
    cached_network_image: ^3.3.1
    flutter_image_compress: ^2.3.0
    image_cropper: ^6.0.0
    firebase_analytics: ^10.10.5
    rate_my_app: ^2.1.0
    upgrader: ^10.3.0
    share_plus: ^9.0.0


    But compared to the past, I did not add or delete any dependencies. I am currently using the same things as I used in the past, I just updated the versions.

    Continue reading...

Compartilhe esta Página