Skip to content

Commit

Permalink
fix assert (flutter#8851)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnfield committed May 4, 2019
1 parent bf89afd commit 09fae08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ui/semantics.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 09fae08

Please sign in to comment.