Expected "fonts" to be a list of maps

1.7k views Asked by At

I downloaded a font and placed it in assets.

pubspec.yaml

fonts:
    - family: Noor Regular
      fonts:
        - asset:assets/fonts/noorehuda-Regular.ttf

Error:

Error detected in pubspec.yaml:
Expected "fonts" to be a list of maps.
1

There are 1 answers

0
Shahzaib Ahmed On
fonts:
    - family: Noor Regular
      fonts:
        - asset: assets/fonts/noorehuda-Regular.ttf

The formatting is incorrect. give a space b/w asset: assets/...