Commit 0b542d5c authored by Adam Barth's avatar Adam Barth

Delay unmounting elements until the end of the frame

This patch prepares us to move these elements around in the tree.
parent be72f333
......@@ -40,7 +40,7 @@ class WidgetFlutterBinding extends FlutterBinding {
void beginFrame(double timeStamp) {
buildDirtyElements();
super.beginFrame(timeStamp);
scheduleMicrotask(GlobalKey.checkForDuplicatesAndNotifyListeners);
Element.finalizeTree();
}
List<BuildableElement> _dirtyElements = new List<BuildableElement>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment