flutter 无法在www.example.com上加载字体Roboto https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Me5WZLCzYlKw.ttf [已关闭]

ewm0tg9j  于 2023-05-19  发布在  Flutter
关注(0)|答案(1)|浏览(546)

**关闭。**此题需要debugging details。目前不接受答复。

编辑问题以包含desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem。这将帮助其他人回答这个问题。
昨天关门了。
Improve this question
当试图在Chrome Web上运行我的Flutter Starter应用程序时,我得到了一个带有此错误的空白网页。

在https www.example.com text加载字体roboto失败 //fonts.gstatic.com/s/roboto/v20/kfomcnqeu92fr1me5wzlczylkw.ttfyour

9rnv2umw

9rnv2umw1#

Google字体在运行时从互联网上获取。因此,要做到这一点,您需要有一个活跃的互联网连接。为了克服这一点;你可以从google fonts下载字体,并将其放到assets文件夹中,也就是离线。查看article以了解更多详细信息。
此外,我检查了您提供的链接,不仅语法不正确,而且还返回404。

相关问题