| 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 'package:sky/mojo/activity.dart' as activity; | 5 import 'package:sky/mojo/activity.dart' as activity; |
| 6 import 'package:sky/mojo/asset_bundle.dart'; | 6 import 'package:sky/mojo/asset_bundle.dart'; |
| 7 import 'package:sky/painting/box_painter.dart'; | 7 import 'package:sky/painting/box_painter.dart'; |
| 8 import 'package:sky/theme/colors.dart' as colors; | 8 import 'package:sky/theme/colors.dart' as colors; |
| 9 import 'package:sky/theme/typography.dart' as typography; | 9 import 'package:sky/theme/typography.dart' as typography; |
| 10 import 'package:sky/widgets/basic.dart'; | 10 import 'package:sky/widgets/basic.dart'; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 backgroundColor: const Color(0xFF0081C6) | 98 backgroundColor: const Color(0xFF0081C6) |
| 99 ) | 99 ) |
| 100 ), | 100 ), |
| 101 new SkyDemo( | 101 new SkyDemo( |
| 102 name: 'Sector', | 102 name: 'Sector', |
| 103 href: '../../widgets/sector.dart', | 103 href: '../../widgets/sector.dart', |
| 104 bundle: 'sector.skyx', | 104 bundle: 'sector.skyx', |
| 105 description: 'Demo of alternative layouts', | 105 description: 'Demo of alternative layouts', |
| 106 textTheme: typography.black, | 106 textTheme: typography.black, |
| 107 decoration: new BoxDecoration( | 107 decoration: new BoxDecoration( |
| 108 backgroundColor: colors.Black, | 108 backgroundColor: colors.black, |
| 109 backgroundImage: new BackgroundImage( | 109 backgroundImage: new BackgroundImage( |
| 110 image: _bundle.loadImage('assets/sector_thumbnail.png'), | 110 image: _bundle.loadImage('assets/sector_thumbnail.png'), |
| 111 fit: BackgroundFit.cover | 111 fit: BackgroundFit.cover |
| 112 ) | 112 ) |
| 113 ) | 113 ) |
| 114 ), | 114 ), |
| 115 // new SkyDemo( | 115 // new SkyDemo( |
| 116 // 'Touch Demo', '../../rendering/touch_demo.dart', 'Simple example showing
handling of touch events at a low level'), | 116 // 'Touch Demo', '../../rendering/touch_demo.dart', 'Simple example showing
handling of touch events at a low level'), |
| 117 new SkyDemo( | 117 new SkyDemo( |
| 118 name: 'Minedigger Game', | 118 name: 'Minedigger Game', |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 ) | 186 ) |
| 187 ) | 187 ) |
| 188 ) | 188 ) |
| 189 ); | 189 ); |
| 190 } | 190 } |
| 191 } | 191 } |
| 192 | 192 |
| 193 void main() { | 193 void main() { |
| 194 runApp(new SkyHome()); | 194 runApp(new SkyHome()); |
| 195 } | 195 } |
| OLD | NEW |