Widget textSpan() {
return Text.rich(TextSpan(
children: [
TextSpan(
text: "Home: "
),
TextSpan(
text: "https://flutterchina.club",
style: TextStyle(
color: Colors.blue
),
),
]
)).center();
}
Flutter--不同样式字符串拼接
猜你喜欢
转载自blog.csdn.net/weixin_41735943/article/details/121046710
今日推荐
周排行