diff --git a/engine/src/flutter/tests/layout/custom.sky b/engine/src/flutter/tests/layout/custom.sky index fc7399930e3..b3892a873c1 100644 --- a/engine/src/flutter/tests/layout/custom.sky +++ b/engine/src/flutter/tests/layout/custom.sky @@ -23,7 +23,6 @@ void main() { parent.setLayoutManager(() { if (first) { - first = false; parent.width = 200.0; } else { parent.width = 150.0; @@ -69,6 +68,7 @@ void main() { expect(secondChild.offsetWidth, equals(200)); assertNonChangingValues(); + first = false; parent.setNeedsLayout(); window.requestAnimationFrame((_) {