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

Side by Side Diff: sky/examples/fn/widgets/menuitem.dart

Issue 992033002: Change the name of Component.render to Component.build in Effen (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: README 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/fn/widgets/menudivider.dart ('k') | sky/examples/fn/widgets/radio.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 part of widgets; 1 part of widgets;
2 2
3 class MenuItem extends ButtonBase { 3 class MenuItem extends ButtonBase {
4 4
5 static Style _style = new Style(''' 5 static Style _style = new Style('''
6 transform: translateX(0); 6 transform: translateX(0);
7 display: flex; 7 display: flex;
8 align-items: center; 8 align-items: center;
9 height: 48px; 9 height: 48px;
10 -webkit-user-select: none;''' 10 -webkit-user-select: none;'''
(...skipping 17 matching lines...) Expand all
28 color: #212121; 28 color: #212121;
29 padding: 0px 16px; 29 padding: 0px 16px;
30 flex: 1;''' 30 flex: 1;'''
31 ); 31 );
32 32
33 List<Node> children; 33 List<Node> children;
34 String icon; 34 String icon;
35 35
36 MenuItem({ Object key, this.icon, this.children }) : super(key: key); 36 MenuItem({ Object key, this.icon, this.children }) : super(key: key);
37 37
38 Node render() { 38 Node build() {
39 return new Container( 39 return new Container(
40 style: _highlight ? _highlightStyle : _style, 40 style: _highlight ? _highlightStyle : _style,
41 children: [ 41 children: [
42 super.render(), 42 super.build(),
43 new Icon( 43 new Icon(
44 style: _iconStyle, 44 style: _iconStyle,
45 size: 24, 45 size: 24,
46 type: "${icon}_grey600" 46 type: "${icon}_grey600"
47 ), 47 ),
48 new Container( 48 new Container(
49 style: _labelStyle, 49 style: _labelStyle,
50 children: children 50 children: children
51 ) 51 )
52 ] 52 ]
53 ); 53 );
54 } 54 }
55 } 55 }
OLDNEW
« no previous file with comments | « sky/examples/fn/widgets/menudivider.dart ('k') | sky/examples/fn/widgets/radio.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698