flutter - 这个包在 pubspec.yaml 的 `dependencies` 部分没有flutter_web_plugins
问题描述
添加网络支持后发布我的包时出现此错误
Package validation found the following error:
* line 9, column 1 of lib/hexcolor_web.dart: This package does not have flutter_web_plugins in the `dependencies` section of `pubspec.yaml`.
╷
9 │ import 'package:flutter_web_plugins/flutter_web_plugins.dart';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
解决方案
在您的 pubspec.yaml 中
添加这个
dependencies:
flutter:
sdk: flutter
flutter_web_plugins:
sdk: flutter
推荐阅读
- javascript - 使用另一个 javascript 事件绕过 javascript 事件
- javascript - 量角器 - 如何从一列中获取所有单元格并在网格的行列具有 id="0-0" 时对它们求和
- c++ - 如何从 wxWebView 获得响应
- c# - 如何在 XElement 中获取一些特定的属性值
- python - pandas:按两列分组,然后按第三列的值排序
- swift - 如何在swift中购买应用程序后解锁UITabbar
- c# - 如何填充 dropDownList 上的所有 listItems - ASP
- angularjs - 如何使用 webpack 4.* 加载 angularjs 1.* ngRoute?
- vba - 运行时错误 1004:VBA 中的应用程序定义或对象定义错误
- c++ - 使用 C++ 更改 wia 扫描仪对话框上的默认选定颜色