skip to Main Content

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 the documentation computer screen

How it appears on my computer screen (note that my screen lacks the option Get dependencies)
How it appears on my computer screen (note that my screen lacks the option Get dependencies)

2

Answers


  1. Simply open your project directory in a terminal window and run

    flutter pub get
    

    That should work!

    Login or Signup to reply.
  2. Open pubspec.yaml. You will find 3 options on top of editor

    1. Pub get
    2. Pub upgrade
    3. Pub outdated

    Click on Pub get, if you add a new package. Click on Pub upgrade, if you want to upgrade an existing package. (Note your package version should contain ^ to upgrade. Example provider: ^6.0.0). Click if to check if your package contains any deprecated classes.

    or

    You can run the following commands on terminal.

    flutter pub get
    
    flutter pub upgrade
    
    flutter pub outdated
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search