简体   繁体   English

Flutter-无法编辑pubspec.yaml文件

[英]Flutter - not able edit pubspec.yaml file

I am trying to add this in pubspec.yaml : 我正在尝试在pubspec.yaml添加它:

dependencies:
  flutter_date_picker: "^0.1.8"

But I'm not able to update packages. 但是我无法更新软件包。 I only get an error in Flutter after editing pubspec.yaml file. 编辑pubspec.yaml文件后,我仅在Flutter中收到错误pubspec.yaml

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM