如何适应颤振容器 html 小部件数据

时间:2021-01-01 07:47:15

标签: flutter flutter-layout

我使用的是 wordpress v2 api,我想在看到所有细节之前先看几行文章内容。

但是,当我使用substring方法并剪切数据时,html代码被破坏并出现div-css。

这是博客框,我的意思是,我希望下面的文字不要溢出,我不能像文字一样剪切它,因为我在html小部件中使用它。

enter image description here

Container(
    height: 100,
    child: HtmlWidget( article.content ,
      bodyPadding: EdgeInsets.zero,
      textStyle: GoogleFonts.nunito(textStyle: utils.ThemeText.relatedArticleTitle,fontStyle: FontStyle.normal,),
    ),
),

如何使用 html 小部件查看几行数据。

谢谢你。

1 个答案:

答案 0 :(得分:0)

移除高度:

LockingManager