未验证 提交 09fae082 编写于 作者: D Dan Field 提交者: GitHub

fix assert (#8851)

上级 bf89afdf
......@@ -656,7 +656,7 @@ class SemanticsUpdateBuilder extends NativeFieldWrapperClass2 {
}) {
assert(_matrix4IsValid(transform));
assert(
scrollChildren == 0 || (scrollChildren > 0 && childrenInHitTestOrder != null),
scrollChildren == 0 || scrollChildren == null || (scrollChildren > 0 && childrenInHitTestOrder != null),
'If a node has scrollChildren, it must have childrenInHitTestOrder',
);
_updateNode(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册