小编MML*_*MML的帖子

“uses-material-design: true”不与 pubspec.yaml 中的其他资产一起使用

在删除/注释此行之前,我无法将图像、字体等任何资产添加到我的项目应用程序中

\n
uses-material-design: true\n
Run Code Online (Sandbox Code Playgroud)\n

错误

\n
Error detected in pubspec.yaml:\nRestarted application in \xd9\xa8ms.\nError on line 25, column 4: Expected a key while parsing a block mapping.\n   \xe2\x95\xb7\n25 \xe2\x94\x82    assets:\n   \xe2\x94\x82    ^\n   \xe2\x95\xb5\nException: Please correct the pubspec.yaml file at .\\pubspec.yaml\n\n
Run Code Online (Sandbox Code Playgroud)\n

除了这个问题,一切都好pubspec.yaml

\n
name: mi_card\ndescription: A new Flutter application.\n\nversion: 1.0.0+1\n\nenvironment:\n  sdk: ">=2.1.0 <3.0.0"\n\ndependencies:\n  flutter:\n    sdk: flutter\n\n  cupertino_icons: ^0.1.2\n\ndev_dependencies:\n  flutter_test:\n    sdk: flutter\n\n\nflutter:\n\n  # The following line ensures that the Material Icons font is\n  # included with your application, so that …
Run Code Online (Sandbox Code Playgroud)

yaml dart material-design flutter pubspec

2
推荐指数
1
解决办法
8016
查看次数

标签 统计

dart ×1

flutter ×1

material-design ×1

pubspec ×1

yaml ×1