如何修复DART模棱两可的导入程序包错误消息
名称dateutils
在库中定义软件包:calendarro/date_utils.dart
and code> and 软件包:flutter/src/src/strc/diters/date.dart
(通过软件包:Flutter/Material.dart)
。 尝试使用作为“导入指令”之一的前缀
,或将名称隐藏在importssss.dartambigous_import
之外的所有名称中
The name DateUtils
is defined in the libraries package:calendarro/date_utils.dart
and package:flutter/src/material/date.dart
(via package:flutter/material.dart)
.
Try using as prefix
for one of the import directives, or hiding the name from all but one of the imports.dartambiguous_import
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以像这样导入包装
you can import packages like this