TextSpan

对一个Text内容不同部分按照不同样式显示

Text.rich(TextSpan(
  children:[
    TextSpan(
      text:'Home:'
    ),
    TextSpan(
      text:'urlurlurl',
      style:TextStyle(
        color:Colors.blue
      )
    )
  ]
))

文本样式可被继承

Default(
  style:TextStyle(
    color:Colors.red,
    fontSize:20.0
  ),
  textAlign:TextAlign.center
)
原文地址:https://www.cnblogs.com/shui1993/p/11130895.html