| OLD | NEW |
| 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 'dart:sky' as sky; | 6 import 'dart:sky' as sky; |
| 7 import '../rendering/box.dart'; | 7 import '../rendering/box.dart'; |
| 8 import '../rendering/object.dart'; | 8 import '../rendering/object.dart'; |
| 9 | 9 |
| 10 | 10 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 if (_slots[slot] == child) { | 68 if (_slots[slot] == child) { |
| 69 this[slot] = null; | 69 this[slot] = null; |
| 70 return slot; | 70 return slot; |
| 71 } | 71 } |
| 72 } | 72 } |
| 73 return null; | 73 return null; |
| 74 } | 74 } |
| 75 | 75 |
| 76 bool get sizedByParent => true; | 76 bool get sizedByParent => true; |
| 77 void performResize() { | 77 void performResize() { |
| 78 size = constraints.constrain(new sky.Size.infinite()); | 78 size = constraints.constrain(sky.Size.infinite); |
| 79 assert(size.width < double.INFINITY); | 79 assert(size.width < double.INFINITY); |
| 80 assert(size.height < double.INFINITY); | 80 assert(size.height < double.INFINITY); |
| 81 } | 81 } |
| 82 | 82 |
| 83 static const kToolbarHeight = 100.0; | 83 static const kToolbarHeight = 100.0; |
| 84 static const kStatusbarHeight = 50.0; | 84 static const kStatusbarHeight = 50.0; |
| 85 static const kButtonX = -16.0; // from right edge of body | 85 static const kButtonX = -16.0; // from right edge of body |
| 86 static const kButtonY = -16.0; // from bottom edge of body | 86 static const kButtonY = -16.0; // from bottom edge of body |
| 87 | 87 |
| 88 void performLayout() { | 88 void performLayout() { |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 void syncRenderObject(UINode old) { | 190 void syncRenderObject(UINode old) { |
| 191 super.syncRenderObject(old); | 191 super.syncRenderObject(old); |
| 192 syncChild(toolbar, old is Scaffold ? old.toolbar : null, ScaffoldSlots.toolb
ar); | 192 syncChild(toolbar, old is Scaffold ? old.toolbar : null, ScaffoldSlots.toolb
ar); |
| 193 syncChild(body, old is Scaffold ? old.body : null, ScaffoldSlots.body); | 193 syncChild(body, old is Scaffold ? old.body : null, ScaffoldSlots.body); |
| 194 syncChild(statusbar, old is Scaffold ? old.statusbar : null, ScaffoldSlots.s
tatusBar); | 194 syncChild(statusbar, old is Scaffold ? old.statusbar : null, ScaffoldSlots.s
tatusBar); |
| 195 syncChild(drawer, old is Scaffold ? old.drawer : null, ScaffoldSlots.drawer)
; | 195 syncChild(drawer, old is Scaffold ? old.drawer : null, ScaffoldSlots.drawer)
; |
| 196 syncChild(floatingActionButton, old is Scaffold ? old.floatingActionButton :
null, ScaffoldSlots.floatingActionButton); | 196 syncChild(floatingActionButton, old is Scaffold ? old.floatingActionButton :
null, ScaffoldSlots.floatingActionButton); |
| 197 } | 197 } |
| 198 | 198 |
| 199 } | 199 } |
| OLD | NEW |