How do I update a pub package?

First, comment that the packaging line in the pubspec. yaml file and run flutter pub get after successfully get packages to uncomment that line (if you want to upgrade/downgrade to a specific version that mentioned version too) it will upgrade to the latest version.

Read more

How do I get rid of pub flutter?

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 more