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

Side by Side Diff: sky/framework/components/menu_item.dart

Issue 1007893005: Clean up stock_app.dart (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/framework/components/icon_button.dart ('k') | sky/framework/components/scaffold.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 '../fn.dart'; 5 import '../fn.dart';
6 import 'button_base.dart'; 6 import 'button_base.dart';
7 import 'icon.dart'; 7 import 'icon.dart';
8 import 'ink_well.dart'; 8 import 'ink_well.dart';
9 9
10 class MenuItem extends ButtonBase { 10 class MenuItem extends ButtonBase {
(...skipping 25 matching lines...) Expand all
36 36
37 List<Node> children; 37 List<Node> children;
38 String icon; 38 String icon;
39 39
40 MenuItem({ Object key, this.icon, this.children }) : super(key: key); 40 MenuItem({ Object key, this.icon, this.children }) : super(key: key);
41 41
42 Node buildContent() { 42 Node buildContent() {
43 return new InkWell ( 43 return new InkWell (
44 style: highlight ? _highlightStyle : _style, 44 style: highlight ? _highlightStyle : _style,
45 children: [ 45 children: [
46 new Icon( 46 new StyleNode(
47 style: _iconStyle, 47 new Icon(
48 size: 24, 48 size: 24,
49 type: "${icon}_grey600" 49 type: "${icon}_grey600"
50 ),
51 _iconStyle
50 ), 52 ),
51 new Container( 53 new Container(
52 style: _labelStyle, 54 style: _labelStyle,
53 children: children 55 children: children
54 ) 56 )
55 ] 57 ]
56 ); 58 );
57 } 59 }
58 } 60 }
OLDNEW
« no previous file with comments | « sky/framework/components/icon_button.dart ('k') | sky/framework/components/scaffold.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698