Flutter 导包错误 Target of URI doesn't exist 'package:english_words/english_words.dart'

https://flutter.io/using-packages/ 官方教程

Stop and restart the app, if necessary
If the package brings platform-specific code (Java/Kotlin for Android, Swift/Objective-C for iOS), that code must be built into your app. Hot reload and hot restart do this only for the Dart code of the package, so you may have to do a full restart of the app to avoid errors like MissingPluginException when using the package.

如果出现丢包错误,重新启动编译器。这里我用的vscode。

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容