lock file lets you test your package against the latest compatible versions of its dependencies . For application packages, we recommend that you commit the pubspec. lock file. Saving pubspec. lock ensures that everyone working on the app uses the exact same versions.
Read moreWhat is pub command?
Pub is the official repository for the Flutter and Dart packages available at pub. dev, and pub is your command line interface to that repository . This article will introduce the many options that are available with the Pub tool.
Read moreHow do you use flutter pub?
Adding a package dependency to an app
Read moreWhat does flutter pub get do?
Get is one of the commands of the pub tool. This command gets all the dependencies listed in the pubspec. yaml file in the current working directory, as well as their transitive dependencies .
Read more