I'm new at flutter and I want to add a picture to my app. I coded something like this;
body: Center(
child: Image(
image: AssetImage('assets/cartman.png'),
)),
And my .yaml file is;
# To add assets to your application, add an assets section, like this:
assets:
-assets/cartman.png
And my error output is;
Error detected in pubspec.yaml:
Error on line 48, column 4: Expected a key while parsing a block mapping.
╷
48 │ assets:
│ ^
╵
Please correct the pubspec.yaml file at
C:\Users\camur\AndroidStudioProjects\flutter_kurulum\pubspec.yaml
exit code 1
Can you help me about this? Thanks in advance.