Flutter 颤振-如何获得高度时,文字有这么长的原因,我使用灵活的新行

Flutter 颤振-如何获得高度时,文字有这么长的原因,我使用灵活的新行,flutter,flutter-layout,Flutter,Flutter Layout,我想得到高度容器时,文本有这么长。 因为我在新的生产线中使用弹性材料 如何做到这一点 我的密码 Widget textAutoNewLine(String title, {double? width, double? height, Color? colorValue, double? fontSize}) { return Container( width: width ?? double.infinity, // height: height ?? 500, If the tit

我想得到高度容器时,文本有这么长。 因为我在新的生产线中使用弹性材料

如何做到这一点

我的密码

Widget textAutoNewLine(String title,
  {double? width, double? height, Color? colorValue, double? fontSize}) {
return Container(
  width: width ?? double.infinity,
  // height: height ?? 500, If the title is increased. The height is increasing
  child: Column(
    children: [
      Flexible(
        child: Text(
          title,
          style: TextStyle(
              height: 1,
              fontFamily: 'THSarabun',
              fontSize: fontSize ?? 17.0,
              color: colorValue ?? Colors.black,
              fontWeight: FontWeight.normal),
        ),
      ),
    ],
  ),
);
}