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.