【问题标题】:Flutter - not able edit pubspec.yaml fileFlutter - 无法编辑 pubspec.yaml 文件
【发布时间】:2018-12-05 10:18:54
【问题描述】:

我正在尝试将其添加到pubspec.yaml

dependencies:
  flutter_date_picker: "^0.1.8"

但我无法更新软件包。编辑 pubspec.yaml 文件后,我只在 Flutter 中遇到错误。

【问题讨论】:

  • 你能发布错误吗?
  • 如果没有准确和完整的错误信息,这个问题是毫无意义的。
  • 同意!需要错误。除此之外,对我来说,它像这样工作得很好:依赖项:flutter_date_picker:^0.1.8

标签: flutter flutter-dependencies


【解决方案1】:
dependencies:
  flutter:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.2
  intl: ^0.15.7 -->**Add Your dependencies like this at pubspec.yaml**

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-08-24
    • 2021-07-23
    • 2023-03-18
    • 2021-03-23
    • 1970-01-01
    • 2014-01-21
    • 2017-07-20
    • 1970-01-01
    相关资源
    最近更新 更多