flutter-app-size

Analyze Flutter APK, AAB, or IPA sizes via flutter build --analyze-size and DevTools JSON diffs.

1|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/takzobye/flutter_social_share_plus --skill flutter-app-size
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: flutter-app-size
Source: https://github.com/takzobye/flutter_social_share_plus/tree/main/.agents/skills/flutter-app-size
Command: npx skills add https://github.com/takzobye/flutter_social_share_plus --skill flutter-app-size

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a structured workflow to measure, analyze, and reduce the binary size of Flutter applications so developers can produce smaller APKs, AABs, IPAs, or desktop artifacts with data-driven optimizations.

Core Features & Use Cases

  • Generate platform-specific size analysis artifacts and JSON reports to quantify where code and assets consume space.
  • Guide DevTools App Size analysis using treemaps, dominator trees, and diff comparisons to identify large packages, libraries, or assets.
  • Recommend and apply build-time strategies such as split-debug-info, obfuscation, asset compression, and platform-specific tree-shaking for measurable size reduction.
  • Use Case: Optimize an Android appbundle by locating large native libraries and removing or compressing unused assets, then validate reductions via repeated analyze-size builds and DevTools diffs.

Quick Start

Run a release build with analyze-size for your target platform, upload the generated code-size-analysis JSON to Dart DevTools, and inspect the treemap and diff to identify and remediate the largest contributors.

Frequently Asked Questions about flutter-app-size

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze and reduce my Flutter app bundle size?

To reduce Flutter app bundle size, run a release build with the analyze-size flag, upload the generated JSON to Dart DevTools, and inspect the treemap to identify and remediate the largest code and asset contributors.

What is the best way to find large packages increasing my Flutter APK size?

The best way to find large packages in a Flutter APK is to generate a code-size-analysis JSON file using the analyze-size build flag, then upload it to Dart DevTools to visually inspect dominator trees and treemaps for bulky libraries.

How do I use split-debug-info and obfuscation to optimize Flutter app size?

To optimize Flutter app size, apply the split-debug-info and obfuscation flags during your release build to strip debug symbols, which measurably reduces the final APK, AAB, or IPA binary size.

Can I measure iOS and desktop binary size reductions using Dart DevTools?

Yes, you can measure iOS and desktop binary size reductions by running platform-specific builds with the analyze-size flag, generating JSON reports that Dart DevTools uploads and diffs to validate size optimization.

Why are my Flutter app size reductions not showing after asset compression?

If Flutter app size reductions are not visible after asset compression, validate by running repeated analyze-size builds and using Dart DevTools diff comparisons to confirm the updated JSON reports reflect the removed or compressed assets.