Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'flutter pub get' does not work in VSCode

Tags:

flutter

I'm currently developing flutter application with VSCode and want to add some packages. ex) dropdown_menu

I did flutter pub get / flutter packages get / clicking down arrow button in vscode(get Packages) and this is all I get everytime

PS D:\VSCodeProjects\testt> flutter pub get
Running "flutter pub get" in testt...                               0.4s
PS D:\VSCodeProjects\testt> 

this is my code in pubspec.

dependencies:
  flutter:
    sdk: flutter
  cupertino_icons: ^0.1.3
  dropdown_menu: ^1.1.0

I did turn on / off program( and computer) , restart,

and

flutter clean

flutter packages get

flutter packages upgrade

Does anybody know how to solve??

like image 826
kw3136 Avatar asked Nov 01 '25 06:11

kw3136


1 Answers

It's running, by default in vs code whenever you save your .yaml file it runs it under the hood. When you explicitly run it using the command, it takes very less time as the packages are already up to date.

If in doubt, try to use the new packages that you added and they should not give errors.

like image 167
Yudhishthir Singh Avatar answered Nov 02 '25 20:11

Yudhishthir Singh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!