| 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 library components_scaffold; |
| 6 |
| 5 import '../fn.dart'; | 7 import '../fn.dart'; |
| 6 import '../layout.dart'; | 8 import '../layout.dart'; |
| 7 import 'drawer.dart'; | 9 import 'drawer.dart'; |
| 8 import 'floating_action_button.dart'; | 10 import 'floating_action_button.dart'; |
| 9 import 'package:sky/framework/theme/typography.dart' as typography; | 11 import 'package:sky/framework/theme/typography.dart' as typography; |
| 10 | 12 |
| 11 class Scaffold extends Component { | 13 class Scaffold extends Component { |
| 12 static final Style _style = new Style(''' | 14 static final Style _style = new Style(''' |
| 13 ${typography.typeface}; | 15 ${typography.typeface}; |
| 14 ${typography.black.body1};'''); | 16 ${typography.black.body1};'''); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 61 |
| 60 if (drawer != null) | 62 if (drawer != null) |
| 61 children.add(new StyleNode(drawer, _drawerStyle)); | 63 children.add(new StyleNode(drawer, _drawerStyle)); |
| 62 | 64 |
| 63 if (overlays != null) | 65 if (overlays != null) |
| 64 children.addAll(overlays); | 66 children.addAll(overlays); |
| 65 | 67 |
| 66 return new Container(style: _style, children: children); | 68 return new Container(style: _style, children: children); |
| 67 } | 69 } |
| 68 } | 70 } |
| OLD | NEW |