Skip to content

Commit c62ebc3

Browse files
committed
Revert layout system edge insets addition due to double-addition of edge insets.
The issue was localized in Text only. That was resolved in another commit.
1 parent 0ab53a1 commit c62ebc3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/src/api/models/node_box.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,8 @@ class InnerNodeBox extends NodeBox {
568568
assert(y.isFinite, 'y is not finite. Value: $y');
569569
assert(width.isFinite, 'width is not finite. Value: $width');
570570
assert(height.isFinite, 'height is not finite. Value: $height');
571+
assert(width.isNegative == false, 'width is negative. Value: $width');
572+
assert(height.isNegative == false, 'height is negative. Value: $height');
571573
assert(edgeInsets.l.isFinite,
572574
'edgeInsets.l is not finite. Value: ${edgeInsets.l}');
573575
assert(edgeInsets.t.isFinite,

0 commit comments

Comments
 (0)