For adding custom font style in pubspec.yaml gives
Error detected in pubspec.yaml:
Invalid value Bold ((String)) for font -> style.
Please correct the pubspec.yaml file at /Users/directory/pubspec.yaml
here is the code in pubspec.yaml
fonts:
- family: Gilroy
fonts:
- asset: fonts/gilroy_bold.ttf
style: Bold
- asset: fonts/gilroy_bolditalic.ttf
weight: 900
- asset: fonts/gilroy_medium.ttf
weight: 700