Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/32.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Testing 小部件测试在颤振中失败,但在将颤振升级到1.9.1后,每个设备中的屏幕都正确呈现_Testing_Flutter_Widget - Fatal编程技术网

Testing 小部件测试在颤振中失败,但在将颤振升级到1.9.1后,每个设备中的屏幕都正确呈现

Testing 小部件测试在颤振中失败,但在将颤振升级到1.9.1后,每个设备中的屏幕都正确呈现,testing,flutter,widget,Testing,Flutter,Widget,你能帮我吗?所有屏幕在设备中正确呈现,但泵送小部件测试失败时。与 The following assertion was thrown during layout: A RenderFlex overflowed by 0.966 pixels on the bottom. User-created ancestor of the error-causing widget was: Container file:///Users/---/lib/presentation/pro

你能帮我吗?所有屏幕在设备中正确呈现,但泵送小部件测试失败时。与

    The following assertion was thrown during layout:
A RenderFlex overflowed by 0.966 pixels on the bottom.

User-created ancestor of the error-causing widget was:
  Container
  file:///Users/---/lib/presentation/profile_personal/profile_personal_screen.dart:89:16

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#c07df OVERFLOWING:
  needs compositing
  creator: Column ← Padding ← DecoratedBox ← ConstrainedBox ← Container ← Padding ← Column ←
    _SingleChildViewport ← IgnorePointer-[GlobalKey#da8d9] ← Semantics ← _PointerListener ← Listener ←
    ⋯
  parentData: offset=Offset(1.0, 1.0) (can use size)
  constraints: BoxConstraints(w=727.6, h=29.0)
  size: Size(727.6, 29.0)
  direction: vertical
  mainAxisAlignment: center
  mainAxisSize: max
  crossAxisAlignment: center
  verticalDirection: down
◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤

有一些问题。Flex溢出,但由于溢出小于1像素,您无法看到它。如果您检查“个人资料屏幕”可能是您可以找到一些动态值,这些值在测试时主要会增加布局大小。如何确定哪个小部件溢出当前我只能看到导致错误的小部件的用户创建的祖先was:Containerfile:///Users/---/lib/presentation/profile_personal/profile_personal_screen.dart:89:16按照我的想法,它应该是一个容器。或者共享一些代码,这样我们可以提供更多帮助。升级Flitter后,我面临这个问题