Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Unified Diff: sky/sdk/lib/framework/components2/scaffold.dart

Issue 1160013007: Expose _remove from fn2 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sky/sdk/lib/framework/fn2.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/components2/scaffold.dart
diff --git a/sky/sdk/lib/framework/components2/scaffold.dart b/sky/sdk/lib/framework/components2/scaffold.dart
index 173c3f1f255e6a658184cd8bfd7f329aa172dcbb..e5c6c7d0f633df155b6c378b7678907579b135c4 100644
--- a/sky/sdk/lib/framework/components2/scaffold.dart
+++ b/sky/sdk/lib/framework/components2/scaffold.dart
@@ -187,6 +187,20 @@ class Scaffold extends RenderObjectWrapper {
super.removeChild(node);
}
+ void remove() {
+ if (toolbar != null)
+ removeChild(toolbar);
+ if (body != null)
+ removeChild(body);
+ if (statusbar != null)
+ removeChild(statusbar);
+ if (drawer != null)
+ removeChild(drawer);
+ if (floatingActionButton != null)
+ removeChild(floatingActionButton);
+ super.remove();
+ }
+
void syncRenderObject(UINode old) {
super.syncRenderObject(old);
syncChild(toolbar, old is Scaffold ? old.toolbar : null, ScaffoldSlots.toolbar);
« no previous file with comments | « no previous file | sky/sdk/lib/framework/fn2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698