Text(
  S.current.task_detail_task_details + data.text,
  maxLines: 20,
  style: TextStyle(
    color: Color.fromRGBO(77, 99, 104, 1),
  ),
),

直接设置maxLines 发现有些场景会无效,解决方法 使用Expanded,如下:

Expanded(
  child: Text(
    S.current.task_detail_task_details + data.text,
    maxLines: 100,
    style: TextStyle(
      color: Color.fromRGBO(77, 99, 104, 1),
    ),
  ),
),

来源:https://www.cnblogs.com/lulushen/p/12967346.html

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-13
  • 2021-10-10
  • 2021-12-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-06
  • 2022-12-23
  • 2021-11-29
  • 2021-10-20
相关资源
相似解决方案