在删除/注释此行之前,我无法将图像、字体等任何资产添加到我的项目应用程序中
\nuses-material-design: true\nRun Code Online (Sandbox Code Playgroud)\n错误
\nError 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\nRun Code Online (Sandbox Code Playgroud)\n除了这个问题,一切都好pubspec.yaml
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)