Skip to content

Commit f371681

Browse files
author
fbchen
committed
fix print bug
1 parent 5368d71 commit f371681

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/constrait_layout/constraint_layout.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -1607,7 +1607,8 @@ class _ConstraintRenderBox extends RenderBox
16071607
}
16081608
assert(() {
16091609
if (_debugCheckConstraints) {
1610-
if (element.renderBox is! _InternalBox) {
1610+
if (element.renderBox is! _InternalBox &&
1611+
element.visibility != gone) {
16111612
debugPrint(
16121613
'Warning: The child element with id ${element.nodeId} has a negative size, will not be laid out and paint.');
16131614
}

0 commit comments

Comments
 (0)