【发布时间】:2021-12-25 01:21:46
【问题描述】:
【问题讨论】:
【问题讨论】:
你可以试试RichText
RichText(
text: TextSpan(
text: 'Hello ',
style: DefaultTextStyle.of(context).style,
children: const <TextSpan>[
TextSpan(text: 'bold', style: TextStyle(fontWeight: FontWeight.bold)),
TextSpan(text: ' world!'),
],
),
)
【讨论】:
您可以使用此https://pub.dev/packages/flutter_social_textfield。您也可以添加不同的样式。
【讨论】: