I dowloaded a Flutter sample code for Catalog from git, which showing me a warning,
'package get' has not been run
'Pub get' has not been run
What does it mean? How to solve it? Should I ignore this warnings or Update dependencies as suggested with links in warning?
Reopen the project if the error does not disappear even after downloading dependences.
Dart is similar to node. It has a
pubspec.yaml
which is the equivalent ofpackage.json
containing your dependencies and stuff.And you need to download these dependencies, using
pub get
. Or on the case of flutter, usingflutter packages get
.This warning is just here to reminds you that your dependencies aren't downloaded
=> Click on
Get Dependencies
of the first warningJust restart Android Studio or Your IDE, it worked for me also. Or Run flutter upgrade in terminal.
Click on the 'Get dependencies' on the banner 'pub get', then the banner will disappear an the dependencies will get downloaded and the errors will disappear. If still the errors remain then restart Android Studio and try. It worked for me.
Just open the Terminal and run :
flutter upgrade