How can I tightly wrap a Column of widgets inside a Card?

前端 未结 2 392
误落风尘
误落风尘 2021-02-06 20:34

I have a page of my app that consists solely of a Card that holds a Column at the end of which is a MaterialList. Even if my list only has

2条回答
  •  独厮守ぢ
    2021-02-06 21:29

    By default, Column expands to fill the maximum vertical space. You can change this behavior by setting the mainAxisSize property to MainAxisSize.min, which causes the Column to take up only the minimum amount of vertical space it needs to fit its children.

提交回复
热议问题