diff --git a/framework/fn.dart b/framework/fn.dart index 43df942099d..e7ff9927644 100644 --- a/framework/fn.dart +++ b/framework/fn.dart @@ -607,8 +607,12 @@ abstract class LayoutContainer extends Container { return result; } + // If we ever reuse sky nodes for different classes, then we should + // call _root.setLayoutManager(null) during _remove() here. + void _syncNode(SkyNodeWrapper old) { super._syncNode(old); + _root.setLayoutManager(() => layout(_root)); _root.setNeedsLayout(); }