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

Side by Side Diff: sky/sdk/home.dart

Issue 1219493003: Cleanup sky/sdk/examples (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « sky/sdk/example/widgets/spinning_mixed.dart ('k') | sky/tests/examples/stocks.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 'dart:sky'; 5 import 'dart:sky';
6 6
7 import 'package:mojom/intents/intents.mojom.dart'; 7 import 'package:mojom/intents/intents.mojom.dart';
8 import 'package:sky/framework/shell.dart' as shell; 8 import 'package:sky/framework/shell.dart' as shell;
9 import 'package:sky/theme/colors.dart' as colors; 9 import 'package:sky/theme/colors.dart' as colors;
10 import 'package:sky/theme/edges.dart'; 10 import 'package:sky/theme/edges.dart';
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 child: new Text(text), 44 child: new Text(text),
45 onPressed: _handlePress 45 onPressed: _handlePress
46 ) 46 )
47 ); 47 );
48 } 48 }
49 } 49 }
50 50
51 class SkyHome extends App { 51 class SkyHome extends App {
52 Widget build() { 52 Widget build() {
53 List<Widget> children = [ 53 List<Widget> children = [
54 new SkyDemo('Stocks App', 'example/stocks2/lib/stock_app.dart'), 54 new SkyDemo('Stocks App', 'example/stocks/lib/main.dart'),
55 new SkyDemo('Asteroids Game', 'example/game/main.dart'), 55 new SkyDemo('Asteroids Game', 'example/game/main.dart'),
56 new SkyDemo('Interactive Flex', 'example/rendering/interactive_flex.dart') , 56 new SkyDemo('Interactive Flex', 'example/rendering/interactive_flex.dart') ,
57 new SkyDemo('Sector Layout', 'example/widgets/sector.dart'), 57 new SkyDemo('Sector Layout', 'example/widgets/sector.dart'),
58 new SkyDemo('Touch Demo', 'example/rendering/touch_demo.dart'), 58 new SkyDemo('Touch Demo', 'example/rendering/touch_demo.dart'),
59 new SkyDemo('Minedigger Game', 'example/mine_digger/lib/main.dart'), 59 new SkyDemo('Minedigger Game', 'example/mine_digger/lib/main.dart'),
60 60
61 // TODO(eseidel): We could use to separate these groups?
62 new SkyDemo('Old Stocks App', 'example/stocks/main.sky'),
63 new SkyDemo('Old Touch Demo', 'example/raw/touch-demo.sky'),
64 new SkyDemo('Old Spinning Square', 'example/raw/spinning-square.sky'),
65
66 new SkyDemo('Licences (Old)', 'LICENSES.sky'), 61 new SkyDemo('Licences (Old)', 'LICENSES.sky'),
67 ]; 62 ];
68 63
69 return new Scaffold( 64 return new Scaffold(
70 toolbar: new ToolBar( 65 toolbar: new ToolBar(
71 center: new Text('Sky Demos', style: typography.white.title), 66 center: new Text('Sky Demos', style: typography.white.title),
72 backgroundColor: colors.Blue[500]), 67 backgroundColor: colors.Blue[500]),
73 body: new Material( 68 body: new Material(
74 edge: MaterialEdge.canvas, 69 edge: MaterialEdge.canvas,
75 child: new Flex( 70 child: new Flex(
76 children, 71 children,
77 direction: FlexDirection.vertical, 72 direction: FlexDirection.vertical,
78 justifyContent: FlexJustifyContent.spaceAround 73 justifyContent: FlexJustifyContent.spaceAround
79 ) 74 )
80 ) 75 )
81 ); 76 );
82 } 77 }
83 } 78 }
84 79
85 void main() { 80 void main() {
86 runApp(new SkyHome()); 81 runApp(new SkyHome());
87 } 82 }
OLDNEW
« no previous file with comments | « sky/sdk/example/widgets/spinning_mixed.dart ('k') | sky/tests/examples/stocks.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698