大家。
我目前正忙着尝试在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
可能是https://github.com/flutter/flutter/issues/27356
当传递给Text(...)
的文本为空时发生这种情况。
将此类代码更改为
text?.isEmpty ?? false ? Container() : Text(text)
应该解决它。