Measures and optimizes the size of Flutter application bundles for deployment. Use when minimizing download size or meeting app store package constraints.
The 'flutter-reducing-app-size' skill is designed to measure and optimize the size of Flutter application bundles, addressing the critical need for minimizing download sizes and adhering to app store package constraints. By providing developers with tools to analyze and reduce the size of their applications, this skill helps ensure that apps are more accessible to users, particularly in regions with limited bandwidth or storage capacity. It also aids in meeting the stringent requirements set by various app stores, which often impose limits on package sizes.
You can generate size analysis files by running the Flutter build command with the `--analyze-size` flag, targeting the appropriate platform.
The skill is designed to work with Flutter versions that support the `--analyze-size` flag, but it's recommended to use the latest stable version for best results.
Debug builds include VM overhead and lack Ahead-Of-Time (AOT) compilation and tree-shaking, making them unsuitable for accurate size measurements.
Yes, the skill provides workflows for both iOS and Android platforms, allowing you to analyze and optimize app sizes for each.
You will need to use Dart DevTools to visualize and analyze the Size Analysis JSON files generated during the build process.
Quick Setup:
.claude/skills/Repository
flutter/skills