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

Unified Diff: sky/examples/fn/widgets/menuitem.dart

Issue 993033003: Move example fn widgets into sky/framework/components (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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/fn/widgets/menuitem.dart
diff --git a/sky/examples/fn/widgets/menuitem.dart b/sky/examples/fn/widgets/menuitem.dart
deleted file mode 100644
index 85f8d506671ce375b2f25e75c0d395d328e16249..0000000000000000000000000000000000000000
--- a/sky/examples/fn/widgets/menuitem.dart
+++ /dev/null
@@ -1,55 +0,0 @@
-part of widgets;
-
-class MenuItem extends ButtonBase {
-
- static Style _style = new Style('''
- transform: translateX(0);
- display: flex;
- align-items: center;
- height: 48px;
- -webkit-user-select: none;'''
- );
-
- static Style _highlightStyle = new Style('''
- transform: translateX(0);
- display: flex;
- align-items: center;
- height: 48px;
- background: rgba(153, 153, 153, 0.4);
- -webkit-user-select: none;'''
- );
-
- static Style _iconStyle = new Style('''
- padding: 0px 16px;'''
- );
-
- static Style _labelStyle = new Style('''
- font-family: 'Roboto Medium', 'Helvetica';
- color: #212121;
- padding: 0px 16px;
- flex: 1;'''
- );
-
- List<Node> children;
- String icon;
-
- MenuItem({ Object key, this.icon, this.children }) : super(key: key);
-
- Node build() {
- return new Container(
- style: _highlight ? _highlightStyle : _style,
- children: [
- super.build(),
- new Icon(
- style: _iconStyle,
- size: 24,
- type: "${icon}_grey600"
- ),
- new Container(
- style: _labelStyle,
- children: children
- )
- ]
- );
- }
-}
« 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