美文网首页
解决flutter 多个listView 动态高度的问题

解决flutter 多个listView 动态高度的问题

作者: neobuger | 来源:发表于2022-09-29 15:09 被阅读0次

ListView.builder(
        shrinkWrap: true, //为true可以解决子控件必须设置高度的问题
        physics: NeverScrollableScrollPhysics(),//内部禁止滑动
        itemCount: this.bottomList.length,
        itemBuilder: (BuildContext context, int index) {
          return this.bottomList[index];
        },
      ),

相关文章

网友评论

      本文标题:解决flutter 多个listView 动态高度的问题

      本文链接:https://www.haomeiwen.com/subject/bglkartx.html