老师 这个问题如何处理 ,在下拉时候边界超出。

来源:1-8 本章作业

lovejavacoffee

2022-03-29

======== Exception caught by rendering library =====================================================
The following assertion was thrown during layout:
A RenderFlex overflowed by 17 pixels on the bottom.

The relevant error-causing widget was:
Column Column:file:///Users/fjw/StudioProjects/flutter_bili/lib/widget/video_large_card.dart:64:14
The overflowing RenderFlex has an orientation of Axis.vertical.
The edge of the RenderFlex that is overflowing has been marked in the rendering with a yellow and black striped pattern. This is usually caused by the contents being too big for the RenderFlex.

Consider applying a flex factor (e.g. using an Expanded widget) to force the children of the RenderFlex to fit within the available space instead of being sized to their natural size.
This is considered an error condition because it indicates that there is content that cannot be seen. If the content is legitimately bigger than the available space, consider clipping it with a ClipRect widget before putting it in the flex, or using a scrollable container rather than a Flex, like a ListView.

The specific RenderFlex in question is: RenderFlex#27318 relayoutBoundary=up2 OVERFLOWING
… parentData: offset=Offset(8.0, 5.0) (can use size)
… constraints: BoxConstraints(w=213.4, 0.0<=h<=89.5)
… size: Size(213.4, 89.5)
… direction: vertical
… mainAxisAlignment: spaceBetween
… mainAxisSize: max
… crossAxisAlignment: start
… textDirection: ltr
… verticalDirection: down
◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤

I/flutter ( 6092): dis:1096.0618159764572

写回答

1回答

CrazyCodeBoy

2022-03-30

调整下video_large_card.dart 中元素的高度,也可对照这块课程源码检查下你的代码实现看是否有出入的地方

0
0

Flutter高级进阶实战-仿哔哩哔哩-掌握Flutter高阶技能

一次性掌握Flutter高阶技能+商业级复杂项目架构设计与开发方案

1747 学习 · 884 问题

查看课程