这是我的pubspec.yaml文件的摘录:
flutter:
uses-material-design: true
fonts:
- family: Coiny
fonts:
- asset: fonts/Coiny-Regular.ttf
我试图使用谷歌字体页面上的"Cony"字体.我在我的根目录中创建了一个fonts文件夹,并将其放入其中.
在我的代码中,我这样做:
new Text("Testtext", style: new TextStyle(fontFamily: "Coiny")),
但它没有效果.我曾经在Barrio字体上遇到过类似的问题.但过了一段时间后,它似乎起了作用,但这次的情况并非如此.