Flutter - Custom Font not displaying

前端 未结 12 2140
感动是毒
感动是毒 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 20:47

    Whenever you make changes to pubspec.yaml file, it is always a good idea to stop the ongoing dart process from your IDE and do a full restart.

    If you do hot reload or hot restart, engine may not be able to fetch the newly added data to your file. If nothing works, you should use @Collin answer, uninstall and reinstall the app.

提交回复
热议问题