# Why app size matters in 2026#
If you want to reduce Flutter app size, treat it like performance work: measure, change one variable, measure again, then automate regressions away.
Size impacts business metrics. Google has repeatedly highlighted that larger apps see lower conversion rates and higher uninstalls, especially in bandwidth-constrained markets. Even in high-connectivity regions, users notice. An extra 20 MB can be the difference between “install now” and “maybe later” on mobile data.
It also impacts engineering. Smaller apps typically ship fewer assets, fewer native libraries, and fewer code paths, which can reduce cold start and improve caching behavior. If you are already optimizing frame rendering and startup, these efforts combine well with size work. See related practical guides: Flutter performance optimization for 60fps and Flutter app startup performance.
# What actually makes Flutter apps big#
Flutter apps can bloat for reasons that look “small” in code review but are huge in packaged artifacts.
The typical size budget breakdown#
Use this table as a mental model when you inspect a build:
| Bucket | Examples | Why it bloats | Typical fixes |
|---|---|---|---|
| Dart AOT code | Your app code, packages | Unused code, reflection-like patterns, large generated code | Tree-shaking, remove packages, avoid dynamic loading patterns |
| Flutter engine and runtime | Engine binaries | Mostly fixed cost | Accept baseline, focus on variable parts |
| Native libraries | Firebase, MLKit, Maps, OpenCV, ad SDKs | Multiple ABIs, transitive dependencies | Split per ABI, remove unused modules, use lighter alternatives |
| Assets | PNGs, JSON, videos, fonts | Uncompressed or duplicated assets | Compress, convert to WebP/AVIF where appropriate, prune fonts |
| Debug symbols | Android native symbols, iOS dSYM | Kept in release if misconfigured | Ensure stripping, upload symbols separately |
🎯 Key Takeaway: Most meaningful wins come from assets and native libraries, not from micro-optimizing Dart code.
Common causes of bloat we see in audits#
- 1Shipping oversized images: 3000px PNG backgrounds used as 360px UI elements.
- 2Using full icon fonts: Bundling Material Icons or Font Awesome full sets when you use 20 icons.
- 3Multiple copies of the same asset: Light and dark variants stored as separate bitmaps instead of using color filters or SVGs.
- 4Heavy SDK choices: Pulling in whole Firebase suites or analytics plus ads plus crash reporting when you only need one module.
- 5No ABI splitting: A universal APK includes arm64-v8a, armeabi-v7a, and x86_64 in one file.
- 6No shrinking: R8 disabled or misconfigured, so unused Java and Kotlin code stays.
- 7Shipping test data: JSON fixtures, mock responses, and sample media accidentally included as assets.
- 8Not measuring the right artifact: Comparing debug APKs, or comparing AAB against APK inconsistently.
# Step 0: Establish a measurement baseline (APK, AAB, IPA)#
Before you optimize, decide what you will measure and how you will report deltas.
Build the artifacts you will track#
Run these commands locally and in CI so the process is identical.
# Android release APK (useful for QA / sideloading comparisons)
flutter build apk --release
# Android App Bundle (what Google Play uses)
flutter build appbundle --release
# iOS IPA (requires proper signing configuration)
flutter build ipa --releaseRecord sizes in a simple table#
Use a spreadsheet, README, or CI artifact summary. Track both “file size” and “download size” expectations.
| Artifact | Where it matters | What to compare over time |
|---|---|---|
| APK (release) | QA, sideloading, some stores | File size in MB |
| AAB (release) | Google Play | AAB size and generated split APK sizes |
| IPA (release) | TestFlight, App Store | IPA size and App Store “App Size” estimate |
ℹ️ Note: Google Play delivers split APKs generated from your AAB based on device config. AAB size can go up while device download size goes down, so always inspect splits.
Extract a “what is inside” report#
For Android, bundletool is the most practical way to inspect what users get.
# Build split APKs from the AAB for inspection
bundletool build-apks \
--bundle=build/app/outputs/bundle/release/app-release.aab \
--output=build/app/outputs/bundle/release/app.apks \
--mode=default
# Get a summary (prints modules, variants, sizes)
bundletool get-size total \
--apks=build/app/outputs/bundle/release/app.apksFor a quick look into what dominates APK size, unzip it and sort by size.
unzip -l build/app/outputs/flutter-apk/app-release.apk | sort -k1 -n | tail -n 30# Step 1: Turn on shrinking and obfuscation correctly (Android)#
Android shrinking is where many Flutter apps leave easy wins on the table. The biggest improvements usually come from R8 removing unused Java and Kotlin code from dependencies.
Enable minify and shrink resources#
In android/app/build.gradle for release:
android {
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}Validate that it actually shrank#
A common pitfall is “enabled” but not effective due to keep rules that keep everything, or because the app is built in a way that disables shrinking.
Check the mapping and usage outputs after a release build:
android/app/build/outputs/mapping/release/mapping.txtandroid/app/build/outputs/mapping/release/usage.txtif configured
⚠️ Warning: Overly broad Proguard keep rules, like keeping entire packages for analytics or reflection-heavy libs, can eliminate most of the benefit. Keep rules should be as narrow as possible and justified.
Add obfuscation when size wins are small but privacy matters#
Obfuscation is not the biggest size lever, but it can remove some metadata and raise reverse engineering cost. Use it alongside shrinking, not instead of it.
flutter build appbundle --release --obfuscate --split-debug-info=build/symbolsStore build/symbols securely and upload to Crashlytics or Sentry as needed.
# Step 2: Split by ABI and avoid universal APK bloat#
If you distribute APKs directly, ABI splits can cut APK size substantially because each APK contains only one native architecture.
Build split APKs per ABI#
flutter build apk --release --split-per-abiYou will get separate APKs, commonly:
app-armeabi-v7a-release.apkapp-arm64-v8a-release.apkapp-x86_64-release.apk
When ABI split matters most#
| Distribution | ABI splitting impact | Recommendation |
|---|---|---|
| Google Play via AAB | Usually already split | Prefer AAB |
| Direct APK download | Large impact | Use --split-per-abi |
| Enterprise MDM | Moderate impact | Consider separate APKs per device group |
# Step 3: Aggressively optimize assets (biggest real-world wins)#
Most Flutter apps ship more bytes in assets than in code. This is also the safest area to optimize without functional risk.
Asset compression checklist#
| Asset type | Common mistake | Better approach | Expected win |
|---|---|---|---|
| PNG photos | Using PNG for photos | Convert to JPEG or WebP | 30 to 80 percent per image |
| UI bitmaps | Shipping @1x, @2x, @3x with large base | Ensure correct pixel density and cropping | 10 to 50 percent |
| Large backgrounds | Full-resolution designs exported raw | Export per target size, consider gradients | 20 to 70 percent |
| Animations | Huge GIFs | Use Lottie JSON or MP4/WebM | Often 5x to 20x smaller |
| JSON | Minified already but duplicated | Remove duplicates, compress source, lazy fetch | Varies |
💡 Tip: If an image is ever drawn at 300 by 300 dp, exporting a 4000 by 4000 px PNG is guaranteed waste. Export close to the maximum on-screen size times device pixel ratio.
A practical, repeatable workflow#
- 1Inventory assets by size.
- 2Optimize the top 10 largest first.
- 3Rebuild AAB and compare split download sizes, not just repository size.
You can list asset file sizes quickly:
# macOS/Linux: list the 30 largest assets
find assets -type f -maxdepth 5 -print0 | xargs -0 du -h | sort -hr | head -n 30Font and icon asset optimization#
Shipping full icon fonts is one of the most common, avoidable sources of bloat.
Prefer Flutter Icons or SVGs over giant icon fonts
If you use only a small subset of icons, avoid bundling a full font file with thousands of glyphs.
| Approach | Pros | Cons | Size impact |
|---|---|---|---|
| Full icon font (Material, FA) | Convenient | Big binary, many unused glyphs | Often 0.5 to 3 MB |
| Subset font | Keeps font workflow | Needs tooling step | Often 60 to 95 percent reduction |
| SVG per icon | Precise, per-asset | Needs caching and good rendering practices | Typically smallest for small sets |
If you must keep a font, subset it using a build step that keeps only used code points. The exact tool depends on your pipeline, but the rule is consistent: only ship glyphs you render.
# Step 4: Reduce dependency and SDK bloat (Dart and native)#
This is where “one package added” can add 5 to 15 MB.
Audit what you actually ship#
Start with a dependency review:
- Remove unused packages and transitive dependencies.
- Prefer modular SDKs. For example, use only required Firebase modules, not a meta package that pulls everything.
Track changes with a simple table per PR:
| Change | Why it was added | Size impact after build | Alternative considered |
|---|---|---|---|
| New SDK or plugin | Business requirement | +X MB | Lighter SDK, server-side alternative |
Watch for native plugins with multiple heavy binaries#
Examples that commonly inflate size:
- ML and vision libraries
- Mapping SDKs
- Video processing
- Ads networks and mediation
Where possible:
- Use feature flags and build flavors to exclude SDKs from builds that do not need them.
- Consider server-side processing for occasional tasks rather than bundling a full on-device library.
# Step 5: Use deferred components and feature splitting (Android)#
If your app has rarely-used features, shipping them on first install is optional. Android Play Feature Delivery can help you move those bytes out of the base install.
When deferred delivery is worth it#
Deferred components are most valuable when:
- A feature is used by less than 20 percent of users.
- The feature pulls heavy SDKs, large assets, or ML models.
- The feature is not required for first-time user activation.
Examples:
- AR module
- Offline map packs
- Video editor
- On-device ML models
Practical guidance for Flutter teams#
Flutter supports deferred components on Android, but you should treat it as an architectural decision, not a last-minute tweak.
Design rules that reduce risk:
- Keep your base module free of heavy plugins.
- Put big assets and code behind a dedicated feature module.
- Add UX fallbacks for download latency and network failures.
⚠️ Warning: Deferred components can increase complexity in routing, error handling, QA, and analytics. If you cannot test module downloads reliably in CI and staging, you can ship regressions.
# Step 6: iOS-specific size reductions (IPA and App Store size)#
On iOS, the biggest wins are usually in assets and in avoiding bloated native frameworks. There is no direct equivalent to Android resource shrinking, so your leverage points differ.
iOS size optimization checklist#
| Area | What to check | What to do |
|---|---|---|
| Symbols | dSYM handling | Ensure release build strips symbols; upload dSYM to crash reporting |
| Assets | PNG/JPG sizes, duplicates | Same compression workflow as Android |
| Native frameworks | Heavy pods or XCFrameworks | Remove unused SDKs, prefer modular frameworks |
| Bitcode settings | Project settings consistency | Keep consistent per Xcode version and pipeline; avoid accidental debug-like settings |
Also align size work with cold-start work. If you reduce assets and native libraries, you can improve decompression and page-in behavior at launch. Use Flutter app startup performance as a companion checklist.
# Step-by-step checklist to reduce APK, AAB, and IPA size#
Use this as a repeatable playbook. The key is to measure after each step and keep a changelog of deltas.
Phase A: Measure and attribute size#
- 1Build release artifacts: APK, AAB, IPA.
- 2Record sizes in a table per flavor.
- 3Inspect AAB split sizes with bundletool.
- 4Unzip APK and list top offenders by file size.
- 5List largest assets in the repository and in the built APK.
Phase B: Code and shrink configuration#
- 1Enable R8 minification and resource shrinking for Android release.
- 2Build with obfuscation and split debug info.
- 3Confirm shrinking is effective by checking mapping outputs.
- 4Remove unused packages and unused native plugins.
- 5Reduce transitive dependency weight by choosing modular SDKs.
Phase C: Asset optimization and font pruning#
- 1Optimize the top 10 largest images first.
- 2Convert photos to JPEG or WebP where acceptable.
- 3Remove duplicate assets and unused assets.
- 4Replace full icon fonts with SVG icons or subset fonts to used glyphs.
- 5Verify that asset changes do not regress visual quality on real devices.
Phase D: Splitting and deferred delivery#
- 1Use
--split-per-abifor APK distribution. - 2Prefer AAB for Google Play.
- 3Identify features used by less than 20 percent of users and candidates for deferred components.
- 4Move feature code and assets into deferred modules.
- 5Add UX fallback and telemetry for module download failures.
Phase E: iOS cleanup#
- 1Ensure release builds strip symbols and do not embed debug assets.
- 2Remove unused iOS frameworks and pods.
- 3Re-check the IPA content for large assets and duplicated resources.
- 4Verify size with TestFlight processing output if applicable.
# Measuring impact properly: a simple delta report template#
For every optimization PR, require a before and after report.
| Artifact | Before | After | Delta | Notes |
|---|---|---|---|---|
| APK release | X MB | Y MB | -Z MB | Built with split per ABI yes or no |
| AAB release | X MB | Y MB | -Z MB | Also include bundletool split total |
| IPA release | X MB | Y MB | -Z MB | Confirm same signing config |
If you only measure “app-release.aab file size”, you can miss improvements that matter to end users. Always include at least one metric that approximates installed or downloaded bytes, such as bundletool totals.
# CI checks to prevent size regressions#
You do not “finish” size optimization. You enforce it.
A practical CI flow is:
- 1Build release AAB and IPA on main branches or PRs.
- 2Extract sizes.
- 3Compare against a baseline JSON committed in the repo or stored as an artifact.
- 4Fail the build if size increases beyond a threshold, for example 2 percent or 500 KB, whichever is larger.
This pairs naturally with a Flutter CI pipeline. If you are building with GitHub Actions, Codemagic, or Fastlane, integrate size gates into the same workflow described here: Flutter CI/CD with GitHub Actions, Codemagic, and Fastlane.
Example: size gate script (Android AAB and APK)#
Keep scripts short, readable, and deterministic.
#!/usr/bin/env bash
set -euo pipefail
APK="build/app/outputs/flutter-apk/app-release.apk"
AAB="build/app/outputs/bundle/release/app-release.aab"
apk_bytes=$(wc -c < "$APK")
aab_bytes=$(wc -c < "$AAB")
echo "APK bytes: $apk_bytes"
echo "AAB bytes: $aab_bytes"
# Example thresholds: 2 percent increase allowed vs baseline values
baseline_apk=${BASELINE_APK_BYTES:-0}
baseline_aab=${BASELINE_AAB_BYTES:-0}
if [ "$baseline_apk" -gt 0 ]; then
max_apk=$(( baseline_apk + (baseline_apk / 50) ))
[ "$apk_bytes" -le "$max_apk" ] || (echo "APK size regression" && exit 1)
fi
if [ "$baseline_aab" -gt 0 ]; then
max_aab=$(( baseline_aab + (baseline_aab / 50) ))
[ "$aab_bytes" -le "$max_aab" ] || (echo "AAB size regression" && exit 1)
fiWhat to baseline#
Baseline should be per:
- app flavor
- build mode release only
- target architecture if you distribute APK per ABI
Store baselines in CI variables or a versioned file. Updating baselines should require an explicit PR with a rationale, like “added maps SDK, +3.2 MB, justified by feature X”.
ℹ️ Note: Size gates should be strict enough to catch accidental bloat, but not so strict that teams bypass them. A good starting policy is “fail on greater than 2 percent growth unless annotated.”
# Common pitfalls when trying to reduce Flutter app size#
- 1Optimizing debug artifacts: Debug builds include extra data. Always compare release artifacts.
- 2Comparing different build configs: Different flavors, signing, or minify settings invalidate comparisons.
- 3Using universal APK as your only metric: It overstates what Play users download from AAB.
- 4Blind Proguard rules: Copy-pasting keep rules that keep entire packages.
- 5Ignoring asset bloat: Teams spend days on code-level micro-optimizations and skip compressing five 6 MB images.
- 6No regression prevention: A new SDK silently adds 8 MB next month and you are back where you started.
If you also care about smoothness and launch time, combine this work with frame and startup tuning. Practical references: Flutter performance optimization for 60fps and Flutter app startup performance.
# Key Takeaways#
- Measure release APK, AAB, and IPA size consistently, and inspect AAB split sizes to reflect real user downloads.
- Enable Android shrinking properly with R8 and resource shrinking, then verify with mapping outputs and deltas.
- Assets and icon fonts are usually the biggest wins: compress images, remove duplicates, and subset or replace icon fonts.
- Split per ABI for direct APK distribution, and consider deferred components for rarely-used, heavy features.
- Prevent regressions with CI size gates, baselines per flavor, and PR-required size reports.
# Conclusion#
To reduce Flutter app size sustainably, you need two things: a technical playbook and automated enforcement. Start by measuring the right artifacts, apply the high-impact optimizations first (assets, fonts, native dependencies, shrinking), and then add CI checks so you never lose the gains.
If you want us to audit your current APK, AAB, and IPA and deliver a prioritized size reduction plan with measurable targets, contact Samioda. We can integrate size gates into your pipeline and align size work with startup and runtime performance so you improve install conversion and user experience together.
FAQ
Founder & Senior Developer at Samioda. 8+ years building React, Next.js, Flutter and n8n automation solutions for clients across Europe.
More in Mobile Development
All →Flutter Design Systems: Build Your Own Component Library or Use Existing Kits?
A practical comparison of building versus buying a Flutter design system: Material 3 theming, design tokens, reusable components, documentation, governance, and migration tips for scaling UI consistency.
Flutter WebView vs Native Screens: When to Embed Web, How to Handle Auth, Payments, and Deep Links
A practical comparison of Flutter WebView vs native screens in 2026: performance, security, UX, and maintainability, with decision rules for auth SSO, payments compliance, deep links, and analytics instrumentation.
Flutter i18n/L10n Guide: Plurals, RTL, Locale Fallbacks, and CI Checks
A practical Flutter internationalization guide covering localization setup, plurals and gender, RTL layouts, date and number formatting, locale fallbacks, and CI validation for ARB files.
Need help with your project?
We build custom solutions using the technologies discussed in this article. Senior team, fixed prices.
Related Articles
Flutter Background Tasks: Scheduling, Reliability, and Platform Constraints (iOS + Android) in 2026
A practical guide to Flutter background tasks scheduling: platform limits on iOS and Android, reliability trade-offs, and when to use workmanager, background_fetch, or native code for sync, notifications, and battery-friendly scheduling.
Flutter In-App Purchases & Subscriptions: Apple and Google Setup, Testing, and RevenueCat
A practical 2026 guide to Flutter in app purchases: product setup in App Store Connect and Play Console, subscriptions, entitlements, receipt validation, paywalls, sandbox testing, and debugging real production issues.
Flutter vs Native iOS/Android in 2026: Cost, Performance, and Time-to-Market Tradeoffs
A practical, numbers-driven comparison of Flutter vs native iOS and Android for 2026 — including cost model, performance reality, maintenance impact, and a decision framework for MVPs, high-performance UI, heavy platform APIs, and regulated apps.