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

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

Issue 1058013003: Unbreak widgets_app.dart (by disabling PopupMenu for now) (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 8 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 | « no previous file | sky/framework/components/button.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 'package:sky/framework/fn.dart'; 5 import 'package:sky/framework/fn.dart';
6 import 'package:sky/framework/components/button.dart'; 6 import 'package:sky/framework/components/button.dart';
7 import 'package:sky/framework/components/input.dart'; 7 import 'package:sky/framework/components/input.dart';
8 import 'package:sky/framework/components/popup_menu.dart'; 8 import 'package:sky/framework/components/popup_menu.dart';
9 9
10 class WidgetsApp extends App { 10 class WidgetsApp extends App {
11 static final Style _menuStyle = new Style(''' 11 static final Style _menuStyle = new Style('''
12 position: absolute; 12 position: absolute;
13 top: 200px; 13 top: 200px;
14 left: 200px;'''); 14 left: 200px;''');
15 15
16 PopupMenuController controller;
17
16 UINode build() { 18 UINode build() {
17 return new Container( 19 return new Container(
18 children: [ 20 children: [
19 new Button(key: 'Go', content: new Text('Go'), level: 1), 21 new Button(key: 'Go', content: new Text('Go'), level: 1),
20 new Button(key: 'Back', content: new Text('Back'), level: 3), 22 new Button(key: 'Back', content: new Text('Back'), level: 3),
21 new Input(), 23 new Input()
22 new Container( 24
23 style: _menuStyle, 25 // PopupMenu requires a PopupMenuController and should be wired up
ojan 2015/04/06 23:07:10 Maybe just delete the code? Or add a TODO?
24 children: [ 26 // to a button to create the controller only when the menu is open, etc.
25 new PopupMenu( 27 // new Container(
26 items: [ 28 // style: _menuStyle,
27 [new Text('People & options')], 29 // children: [
28 [new Text('New group conversation')], 30 // new PopupMenu(
29 [new Text('Turn history off')], 31 // controller: controller,
30 [new Text('Archive')], 32 // items: [
31 [new Text('Delete')], 33 // [new Text('People & options')],
32 [new Text('Un-merge SMS')], 34 // [new Text('New group conversation')],
33 [new Text('Help & feeback')], 35 // [new Text('Turn history off')],
34 ], 36 // [new Text('Archive')],
35 level: 4), 37 // [new Text('Delete')],
36 ] 38 // [new Text('Un-merge SMS')],
37 ) 39 // [new Text('Help & feeback')],
38 ] 40 // ],
41 // level: 4),
42 // ]
43 // )
44 // ]
39 ); 45 );
40 } 46 }
41 } 47 }
OLDNEW
« no previous file with comments | « no previous file | sky/framework/components/button.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698