| 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 'dart:sky'; | 5 import 'dart:sky'; |
| 6 | 6 |
| 7 import 'package:sky/mojo/activity.dart' as activity; | 7 import 'package:sky/mojo/activity.dart' as activity; |
| 8 import 'package:sky/mojo/asset_bundle.dart'; | 8 import 'package:sky/mojo/asset_bundle.dart'; |
| 9 import 'package:sky/mojo/shell.dart' as shell; | 9 import 'package:sky/mojo/shell.dart' as shell; |
| 10 import 'package:sky/painting/box_painter.dart'; | 10 import 'package:sky/painting/box_painter.dart'; |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 ]) | 156 ]) |
| 157 ) | 157 ) |
| 158 ]) | 158 ]) |
| 159 ), | 159 ), |
| 160 ], direction: FlexDirection.vertical) | 160 ], direction: FlexDirection.vertical) |
| 161 ) | 161 ) |
| 162 ) | 162 ) |
| 163 ); | 163 ); |
| 164 } | 164 } |
| 165 | 165 |
| 166 @override |
| 166 Widget build() { | 167 Widget build() { |
| 167 return new ScrollableList<SkyDemo>( | 168 return new ScrollableList<SkyDemo>( |
| 168 items: demos, | 169 items: demos, |
| 169 itemHeight: kCardHeight, | 170 itemHeight: kCardHeight, |
| 170 itemBuilder: buildDemo, | 171 itemBuilder: buildDemo, |
| 171 padding: kListPadding | 172 padding: kListPadding |
| 172 ); | 173 ); |
| 173 } | 174 } |
| 174 } | 175 } |
| 175 | 176 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 190 ) | 191 ) |
| 191 ) | 192 ) |
| 192 ) | 193 ) |
| 193 ); | 194 ); |
| 194 } | 195 } |
| 195 } | 196 } |
| 196 | 197 |
| 197 void main() { | 198 void main() { |
| 198 runApp(new SkyHome()); | 199 runApp(new SkyHome()); |
| 199 } | 200 } |
| OLD | NEW |