我无法使用 pub 包语法导入文件,如下所示:
#import("package:unittest/unittest.dart");
我收到以下编译时错误:
找不到引用的源:package:unittest/unittest.dart
重现步骤: 1) 为 windows https://gsdview.appspot.com/dart-editor-archive-integration/latest/darteditor-win32-64.zip安装了以下 Dart 编辑器。2) 获取一些使用 pub 的项目。3) pub install //works 4) 在 dart 编辑器中打开项目
我看到很多人都在使用它,所以我打赌我做错了。