【发布时间】:2020-05-26 09:48:48
【问题描述】:
我试图向服务器发出 http 请求,但是当我导入包 http 时,vs 代码会打印下一个错误:
Unable to find modules for some sources, this is usually the result of either a
bad import, a missing dependency in a package (or possibly a dev_dependency
needs to move to a real dependency), or a build failure (if importing a
generated file).
Please check the following imports:
`import 'package:http/http.dart' as http;` from fcfm_pa|lib/src/pages/registro_page.dart at 5:1
有人知道发生了什么吗?
【问题讨论】:
-
我能够解决此问题的最简单方法是从测试版频道更改为主频道。我建议任何面临这个问题的人也这样做。
标签: http flutter flutter-dependencies flutter-web