颤动在一切上都需要涂抹?

问题描述 投票:0回答:1

大家。

我目前正忙着尝试在Flutter中构建一个应用程序,我遇到了一个小问题。在我实现了一些同事编写的代码之后,我的应用程序在达到TeamState状态时抛出了NEEDS-PAINT异常。

Here's a link to a Git repo that contains all our code in Main.dart.

非常感谢任何和所有的帮助。

编辑:完全错误...

I/flutter (14688): Another exception was thrown: RenderBox was not laid out: RenderPointerListener#e1773 relayoutBoundary=up7 NEEDS-PAINT
dart flutter
1个回答
0
投票

可能是https://github.com/flutter/flutter/issues/27356

当传递给Text(...)的文本为空时发生这种情况。

将此类代码更改为

text?.isEmpty ?? false ? Container() : Text(text)

应该解决它。

© www.soinside.com 2019 - 2024. All rights reserved.