flutter 字体颜色
// 两个属性不能一起设置
Text(
  '我是一段红色的文本',
  style: TextStyle(
    // 方法一:color 属性
    color: Colors.red,
    // 方法二:设置前景色
    foreground: Paint()..color = Colors.red
  ),
)// 两个属性不能一起设置
Text(
  '我是一段红色的文本',
  style: TextStyle(
    // 方法一:color 属性
    color: Colors.red,
    // 方法二:设置前景色
    foreground: Paint()..color = Colors.red
  ),
)