Flutter应用程序的默认字体家族是什么? [英] What is the default font family of a Flutter app?
本文介绍了Flutter应用程序的默认字体家族是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何检索flutter应用程序的当前字体系列名称以及默认字体名称是什么?
How I can retrieve the current font family name for flutter app and what is the default one ?
我尝试过
Theme.of(context).textTheme.
和
Theme.of(context).
但是字体家族没有属性。
but there is no attribute for the font family.
推荐答案
MaterialApp的默认字体为Google字体 roboto
。
The default font of MaterialApp is roboto
, a Google font.
https://fonts.google.com/specimen/Roboto
这篇关于Flutter应用程序的默认字体家族是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文