flutter 实现文本自动换行

    Widget dynamicTxtSection = Container(
      margin: const EdgeInsets.only(left:16.0,right: 100.0),
        child: const Flexible(
            child: SelectableText.rich(
      TextSpan(
        children: [
          TextSpan(
              text:
                  "sfwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww"),
        ],
      ),
    )));

你可能感兴趣的:(安卓,android,android-studio)