Flutter-无法编辑pubspec.yaml文件

时间:2018-12-05 10:18:55

标签: flutter flutter-dependencies

我试图在pubspec.yaml中添加它:

dependencies:
  flutter_date_picker: "^0.1.8"

但是我无法更新软件包。编辑pubspec.yaml文件后,我只有Flutter错误。

1 个答案:

答案 0 :(得分:0)

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**