很简单的问题,但我一直找不到答案。
我在Flutter中有这样的布局结构:
Inkwell
  Card
    ScopedModelDescendant
      Column
        Container[]
该列中的容器数是可变的。
目标是应该看起来像这样:
但是相反,它最终会这样做:
我可以通过SingleChildScrollView在ScopedModelDescendant和之间放置一个来创建“理想”外观Column,但是那当然不是我想要的,因为我不希望它滚动。
我尝试将clipBehavior属性添加到中Card,并且尝试ClipRects在结构中的任何位置混合,但是似乎没有任何效果。我最好的猜测是,在ClipRect上方Column没有帮助,因为溢出发生在列内。
这是我得到的错误:
flutter: ??? EXCEPTION CAUGHT BY RENDERING LIBRARY ??????????????????????????????????????????????????????????
flutter: The following message was thrown during layout:
flutter: A RenderFlex overflowed by 15 pixels on the bottom.
flutter:
flutter: The overflowing RenderFlex has an orientation of Axis.vertical.
flutter: The edge of the RenderFlex that is overflowing has been marked in …