Visual Studio Code - Target of URI doesn't exist 'package:flutter/material.dart'

后端 未结 29 978
Happy的楠姐
Happy的楠姐 2020-12-07 21:33

I\'ve just setup my Macbook for flutter development,

So I downloaded flutter sdk, and placed it in my Documents. After, I setup my path variable to

29条回答
  •  余生分开走
    2020-12-07 22:09

    This worked for me in Android Studio as well as VS Code. I only had to run these lines in my terminal/command prompt and problem was solved. There was no need to restart any of the IDEs again

    • flutter packages get

    Optionally you also run.

    • flutter upgrade

提交回复
热议问题