Member-only story

Reduce Flutter App Size: Asset Management Technique

Lakshydeep Vikram
4 min readNov 17, 2024

Flutter app size are generally larger. The size of a Flutter app depends on several factors, such as platform (Android/iOS), app complexity, assets, and third-party libraries.

Reason for larger app size in Flutter

  1. Flutter Engine: Flutter includes its rendering engine, which adds to the base size.
  2. Dart Runtime: Includes a Just-In-Time (JIT) and Ahead-Of-Time (AOT) compiled runtime.
  3. Assets: Images, fonts, and other resources can quickly increase size.
  4. Libraries/Plugins: Adding third-party libraries increases app size.
  5. Overhead from App Bundling
    .
    On Android, the APK or AAB format includes a manifest, resources, and native libraries, which contribute to the overall size.
    . On iOS, app thinning is less effective because all assets for all device types are bundled.

Several ways to reduce Flutter app size.

1.Use flutter build Commands for Optimization

For Android

flutter build apk --release
flutter build appbundle --release

For iOS
flutter build ios --release

2. Optimize Assets

--

--

Lakshydeep Vikram
Lakshydeep Vikram

Written by Lakshydeep Vikram

Software Developer | Google Dev Library Author | Flutter Enthusiast

No responses yet