Flutter--不同样式字符串拼接

Widget textSpan() {
    return Text.rich(TextSpan(
        children: [
          TextSpan(
              text: "Home: "
          ),
          TextSpan(
              text: "https://flutterchina.club",
              style: TextStyle(
                  color: Colors.blue
              ),
          ),
        ]
    )).center();
  }

Guess you like

Origin blog.csdn.net/weixin_41735943/article/details/121046710