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

后端 未结 29 953
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:05

    I was trying use the audio players flutter package. Once I added it to pubspec.yaml and tried to import it to main.dart, I got the same error.

    I tried to restart my IDE but that didn't help so i tried running flutter packages pub cache repair and it worked.

提交回复
热议问题