无论如何都可以在两个括号之间获取文本并应用自定义字体和颜色。
示例:我是(Flutter)开发的(新手)。
现在如何更改new和Flutter的颜色
您可以使用RichText窗口小部件
RichText(
text: TextSpan(
text: 'Now how to change color of ',
style: TextStyle(color:Colors.black),
children: <TextSpan>[
TextSpan(
text: 'new ', style: TextStyle(fontWeight: FontWeight.bold,color: Colors.red)),
TextSpan(text: 'and! '), TextSpan(
text: 'Flutter!', style: TextStyle(fontWeight: FontWeight.bold,color: Colors.green)),
],
),
),