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

Side by Side Diff: sky/sdk/lib/framework/components2/scaffold.dart

Issue 1161003002: Split layout2.dart into several files (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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 import '../fn2.dart'; 5 import '../fn2.dart';
6 import '../layout2.dart';
7 import '../theme/typography.dart' as typography; 6 import '../theme/typography.dart' as typography;
8 import 'dart:sky' as sky; 7 import 'dart:sky' as sky;
9 8
10 // RenderNode 9 // RenderNode
11 class RenderScaffold extends RenderDecoratedBox { 10 class RenderScaffold extends RenderDecoratedBox {
12 11
13 RenderScaffold({ 12 RenderScaffold({
14 BoxDecoration decoration, 13 BoxDecoration decoration,
15 RenderBox toolbar, 14 RenderBox toolbar,
16 RenderBox body, 15 RenderBox body,
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 void syncRenderNode(UINode old) { 213 void syncRenderNode(UINode old) {
215 super.syncRenderNode(old); 214 super.syncRenderNode(old);
216 syncChild(toolbar, old is Scaffold ? old.toolbar : null, #toolbar); 215 syncChild(toolbar, old is Scaffold ? old.toolbar : null, #toolbar);
217 syncChild(body, old is Scaffold ? old.body : null, #body); 216 syncChild(body, old is Scaffold ? old.body : null, #body);
218 syncChild(statusbar, old is Scaffold ? old.statusbar : null, #statusbar); 217 syncChild(statusbar, old is Scaffold ? old.statusbar : null, #statusbar);
219 syncChild(drawer, old is Scaffold ? old.drawer : null, #drawer); 218 syncChild(drawer, old is Scaffold ? old.drawer : null, #drawer);
220 syncChild(floatingActionButton, old is Scaffold ? old.floatingActionButton : null, #floatingActionButton); 219 syncChild(floatingActionButton, old is Scaffold ? old.floatingActionButton : null, #floatingActionButton);
221 } 220 }
222 221
223 } 222 }
OLDNEW
« no previous file with comments | « sky/sdk/lib/framework/components2/menu_item.dart ('k') | sky/sdk/lib/framework/components2/tool_bar.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698