Flutter Another exception was thrown: RenderBox was not laid out: RenderRepaintBoundary#eaea6 NEEDS-LAYOUT NEEDS-PAINT

前端 未结 2 589
野性不改
野性不改 2021-01-19 14:09

I\'m using SingleChildScrollView and a Column to display a swiper and a gridview.

If I use some other widget like text, image in my column, the app shows ok. But my

2条回答
  •  离开以前
    2021-01-19 14:30

    I had exactly the same problem, and for me what worked was to wrap the swiper first with the expanded widget, and then wrap the expanded with the container with the sizes needed 1.Container 2. Expanded 3. Swiper

提交回复
热议问题