I’m trying to customize a ready-made application I bought from code canyon. I have followed the documentation all the way through the installation of flutter, android studio, and visual studio plus all JDK tools.
However, at the point of getting dependencies, I cannot see the option to get dependencies for a file (main. dart) as it is on the documentation.
Below are images of how it appears on my documentation computer screen and my computer screen respectively.
How it appears on the documentation computer screen
How it appears on my computer screen (note that my screen lacks the option Get dependencies)
2
Answers
Simply open your project directory in a terminal window and run
That should work!
Open
pubspec.yaml
. You will find 3 options on top of editorClick on
Pub get
, if you add a new package. Click onPub upgrade
, if you want to upgrade an existing package. (Note your package version should contain^
to upgrade. Exampleprovider: ^6.0.0
). Click if to check if your package contains any deprecated classes.or
You can run the following commands on terminal.