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

后端 未结 29 924
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:06

    Basically

    1. Check for correct indentation of your package in dependencies
    2. if your editor supports, it automatically runs -> flutter pub get
    3. Either way -> open terminal-> flutter pub get or flutter packages get
    4. check .packages file, see if your package is present else reinstall package
    5. Most important : Restart your IDE (Visual studio or Android Studio)

    Start debugging your project

    Most probably , your errors will be fixed by then

    Hope it works for you

提交回复
热议问题