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 moreCan I delete pub cache flutter?
Clearing the global system cache Version note: The clean subcommand was introduced in Dart 2.14. To clear your system cache with an older SDK, you can manually delete the PUB_CACHE folder .
Read moreHow do you clear a .pub cache?
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.28 Mar 2019
Read moreWhere is flutter pub cache?
By default, this directory is located under . pub-cache in your home directory (on macOS and Linux), or in %LOCALAPPDATA%\Pub\Cache (on Windows) .
Read more