📜  richtextbox fluter - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:25.957000             🧑  作者: Mango

代码示例1
RichText(
  text: TextSpan(
    text: 'Hello ',
    style: DefaultTextStyle.of(context).style,
    children: [
      TextSpan(text: 'bold', style: TextStyle(fontWeight: FontWeight.bold)),
      TextSpan(text: ' world!'),
    ],
  ),
)