Expected-a-key-while-parsing-a-block-mapping

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
flutter:

# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true

# To add assets to your application, add an assets section, like this:
assets:
- images/1.png
- images/2.png
- images/3.png
- images/4.png
- images/5.png
- images/6.png
- images/7.png
- images/8.png

因为assets没对齐

改成这样就行了

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
flutter:

# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true

# To add assets to your application, add an assets section, like this:
assets:
- images/1.png
- images/2.png
- images/3.png
- images/4.png
- images/5.png
- images/6.png
- images/7.png
- images/8.png

每层增加两个空格

不然会报错