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

Side by Side Diff: sky/examples/widgets-fn/widgets_app.dart

Issue 1005393006: Clean up examples directory (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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/examples/widgets-fn/main.sky ('k') | sky/examples/widgets/main.sky » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 import 'package:sky/framework/fn.dart';
6 import 'package:sky/framework/components/button.dart';
7 import 'package:sky/framework/components/popup_menu.dart';
8
9 class WidgetsApp extends App {
10 static final Style _menuStyle = new Style('''
11 position: absolute;
12 top: 200px;
13 left: 200px;''');
14
15 Node build() {
16 return new Container(
17 children: [
18 new Button(key: 'Go', content: new Text('Go'), level: 1),
19 new Button(key: 'Back', content: new Text('Back'), level: 3),
20 new Container(
21 style: _menuStyle,
22 children: [
23 new PopupMenu(
24 items: [
25 [new Text('People & options')],
26 [new Text('New group conversation')],
27 [new Text('Turn history off')],
28 [new Text('Archive')],
29 [new Text('Delete')],
30 [new Text('Un-merge SMS')],
31 [new Text('Help & feeback')],
32 ],
33 level: 4),
34 ]
35 )
36 ]
37 );
38 }
39 }
OLDNEW
« no previous file with comments | « sky/examples/widgets-fn/main.sky ('k') | sky/examples/widgets/main.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698