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?
Run flutter pub get in the terminal, or click Packages get in IntelliJ or Android Studio. Run the app (or stop and restart it, if it was already running before adding the plugin). Click Show Flutter homepage. You should see the default browser open on the device, displaying the homepage for flutter.
Pub is the package manager for the Dart programming language, containing reusable libraries & packages for Flutter, AngularDart, and general Dart programs. So basically pub is the same as npm or any other package manager but it is specific to dart and flutter.
The pubspec file specifies dependencies that the project requires, such as particular packages (and their versions), fonts, or image files. It also specifies other requirements, such as dependencies on developer packages (like testing or mocking packages), or particular constraints on the version of the Flutter SDK.
Dart is similar to node.
It has a pubspec.yaml
which is the equivalent of package.json
containing your dependencies and stuff.
And you need to download these dependencies, using pub get
. Or on the case of flutter, using flutter packages get
.
This warning is just here to reminds you that your dependencies aren't downloaded
=> Click on Get Dependencies
of the first warning
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With