assets:
- assets/
fonts:
- family: Schyler
fonts:
- asset: fonts/Schyler-Regular.ttf
- asset: fonts/Schyler-Italic.ttf
- family: Trajan Pro
fonts:
- asset: fonts/TrajanPro.ttf
- asset: fonts/TrajanPro_Bold.ttf
weight: 700
I wanted to add this font to assets
your indentation is not correct pubspec.yaml is giving error when you have wrong indentation in it give a tab space before
check out this screen shot and make the indentation like this