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),
    ),
  ),
),

 

相关文章:

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