1. App size of a debug build is large due to the debugging overhead that allows for hot reload and source-level debugging, not representative of a production app end users download.
2. Your upload package to the Play Store and App Store not representative of your end-users’ download size.
3. The stores generally reprocess upload package to target, such as filtering for assets targeting the phone’s DPI, filtering native libraries targeting the phone’s CPU architecture.
4. To analytic size we can use DEV tool or option "analyze-size" when export. example:
- flutter build apk --analyze-size
- flutter build ios --analyze-size
5. Reducing app size: use flag --split-debug-info tag. Optimize resource, asset.
Nhận xét