SDK Size Impact
SDK Size Impact
When developing a mobile app, one crucial performance metric is app size. An app’s size can be difficult to accurately measure with multiple variants and device spreads. Once measured, it’s even more difficult to understand and identify what’s contributing to size bloat.
We regularly track and update the sizes of our packages that are part of our video product. This information is displayed with badges at the top of our GitHub repository.
It’s important to note that the actual impact of these packages on your app’s size is likely to be significantly smaller than the reported sizes. This is due to two key factors:
- Shared Dependencies: You may already be using some of the dependencies included in our packages, reducing additional size overhead.
- Tree Shaking Optimization: During compilation, Flutter performs tree shaking, an optimization process that removes unused code. This ensures your app only includes the code you actively use, discarding unnecessary parts and reducing overall size.
For precise insights into how any package impacts your app’s size, refer to tthis official Flutter guide.