Commit 4ebf26bf authored by Adam Barth's avatar Adam Barth

Merge pull request #1441 from abarth/delay_finalization

Delay unmounting elements until the end of the frame
parents 94f910d8 0b542d5c
...@@ -40,7 +40,7 @@ class WidgetFlutterBinding extends FlutterBinding { ...@@ -40,7 +40,7 @@ class WidgetFlutterBinding extends FlutterBinding {
void beginFrame(double timeStamp) { void beginFrame(double timeStamp) {
buildDirtyElements(); buildDirtyElements();
super.beginFrame(timeStamp); super.beginFrame(timeStamp);
scheduleMicrotask(GlobalKey.checkForDuplicatesAndNotifyListeners); Element.finalizeTree();
} }
List<BuildableElement> _dirtyElements = new List<BuildableElement>(); 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