If a packages in your pub cache to change or break, you can use flutter pub cache repair command performs a clean reinstall of all hosted and git packages in the system cache. Show activity on this post. Delete the pubspec. lock file then run the command flutter pub get again .
Read moreHow do you get HTTP request in flutter?
Fetch and display the data with Flutter.
Read moreWhere does flutter install packages?
By default, the system package cache is located in the . pub-cache subdirectory of your home directory (on Mac and Linux), or in %APPDATA%\Pub\Cache (on Windows; the location might vary depending on the Windows version).
Read moreHow do I add an external package to flutter?
Using external packages in flutter
Read moreHow do you get a pub?
From the terminal: Run flutter pub get . 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.
Read moreHow do you get the flutter pub in Vscode?
Show activity on this post.
Read moreCan I delete flutter pub-cache?
To clear your system cache with an older SDK, you can manually delete the PUB_CACHE folder .
Read more