What works for me is that after several series of running the following commands:
and still doesn't work, I simply just open-up my pubspec.yaml file and remove the version number of all dependencies and run
once more. This works for me pretty well!
If my pubspec.yaml file formally looks like this:
It's now like this: