Flutter - Custom Font not displaying

前端 未结 12 2101
感动是毒
感动是毒 2021-01-03 20:11

This is an excerpt of my pubspec.yaml file:

flutter:
  uses-material-design: true
  fonts:
   - family: Coiny
     fonts:
       - asset: fonts/Coiny-Regular         


        
12条回答
  •  鱼传尺愫
    2021-01-03 21:00

    I tried everything but the changes in pubspec.yaml just did not make any difference. I then created a new project. copied font files to respective folder, made all changes to pubspec.yaml, pasted code into my main.dart file. I ensured everything was in place and then ran project in simulator and viola all fonts appeared in full glory.

提交回复
热议问题