How do I find the size of a Pub package?


I am coming from the Java world to the Dart world and in Java I could easily see the size of a .jar file. Sometimes I want one functionality from a package, but if the package is too big it doesn’t justifies including all that extra code into my app.

How can I see the size of a pub package?


Dart comes with a Tree Shaker algorithm that will remove all unused code in release mode, reducing the size of your app to only the minimum.

So there’s no real comparison with java and the jar size. Only the code you use will be added to your application.

Answered By – Muldec

Answer Checked By – Pedro (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published.