Why Pubspec is yaml?

Every pub package needs some metadata so it can specify its dependencies . Pub packages that are shared with others also need to provide some other information so users can discover them. All of this metadata goes in the package’s pubspec: a file named pubspec. yaml that’s written in the YAML language.

Read more

How do I get rid of flutter pub?

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