Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter: 'package get' has not been run; 'Pub get' has not been run

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?

enter image description here

like image 888
Krunal Avatar asked Mar 01 '18 18:03

Krunal


People also ask

How do I run pub get Flutter?

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.

What does Pub mean in 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.

What is Pubspec file in 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.


1 Answers

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

like image 57
Rémi Rousselet Avatar answered Sep 19 '22 08:09

Rémi Rousselet