Delete ~/. pub-cache/hosted and/or ~/. pub-cache/git (for Git dependencies) . This requires running flutter packages to get in all active projects on your machine afterward.
Read moreWhat is pub get?
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 moreHow do I get the Pubspec yaml file?
From Android Studio/IntelliJ: Click Packages get in the action ribbon at the top of pubspec. yaml . From VS Code: Click Get Packages located in right side of the action ribbon at the top of pubspec. yaml .
Read moreWhere is Pubspec yaml located?
yaml file, often referred to as the pubspec. A basic pubspec is generated when you create a new Flutter project. It’s located at the top of the project tree and contains metadata about the project that the Dart and Flutter tooling needs to know.
Read moreWhat is pub points in Flutter?
Pub Points: A new measure of quality . This includes several dimensions of quality such as code style, platform support, and maintainability. More about this below. Popularity: A measure of how many developers use a package, providing insight into what other developers are using.
Read moreShould I git ignore Pubspec lock?
If you are working on an application package, then you should keep the pubspec . lock file in your repository as a snapshot of your dependencies.
Read moreWhat is Dev_dependencies flutter?
dev_dependencies are modules which are only required during development , while dependencies are modules which are also required at runtime.
Read more