如何使 TextWidget 换行?

How Can I make a TextWidget wrap in Row?

我怎样才能让橙色文本分到行的开头而不是分到自己的开头?

行中的文本小部件换行:

为什么不直接使用 RichText 而不是 Row?更少的代码,更多的可能性。

如果您这样使用 Richtext:

return Container(
        height: 175,
        width: 150,
        decoration: BoxDecoration(
          color: Colors.white,
          borderRadius: BorderRadius.circular(20),
        ),
        child: Padding(
            padding: const EdgeInsets.only(left: 25, top: 100,),
            child: RichText(
                text: const TextSpan(children: <TextSpan>[
          TextSpan(
            text: 'I agree with the ',
            style: TextStyle(
              color: Colors.black,
              fontSize: 12,
            ),
          ),
          TextSpan(
            text: 'privacy_policiesfkads;ljfklas;dj',
            style: TextStyle(
              color: Colors.orange,
              fontSize: 12,
              fontWeight: FontWeight.bold,
            ),
          ),
        ]))));

您应该能够在设计和缩放以及定位方面实现您想要的一切...