Flutter ListView.Builder() in scrollable Column with other widgets

前端 未结 12 589
情书的邮戳
情书的邮戳 2020-12-24 10:58

I have a TabBarView() with an amount of different views. I want of them to be a Column with a TextField at top and a ListView.Builder() below, but both widgets should be in

12条回答
  •  無奈伤痛
    2020-12-24 11:48

    Use Expanded widget to constrain without overflowing those pixels, :)

    Column(
      children: [
        Expanded(
          child: ListView(),
        ),
        Expanded(
          child: ListView(),
        ),
      ],
    )
    

提交回复
热议问题