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

Unified Diff: sky/sdk/lib/framework/components2/menu_item.dart

Issue 1172173002: Clean up a bunch of our Dart code. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: upstream merge Created 5 years, 6 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
Index: sky/sdk/lib/framework/components2/menu_item.dart
diff --git a/sky/sdk/lib/framework/components2/menu_item.dart b/sky/sdk/lib/framework/components2/menu_item.dart
index e3487edc2ae6ed55976276a47cbd9a9990b5e206..77b42923ee415287ad38b2622173122b0677187b 100644
--- a/sky/sdk/lib/framework/components2/menu_item.dart
+++ b/sky/sdk/lib/framework/components2/menu_item.dart
@@ -9,6 +9,8 @@ import 'ink_well.dart';
class MenuItem extends ButtonBase {
+ MenuItem({ Object key, this.icon, this.children, this.onGestureTap }) : super(key: key);
+
static const BoxDecoration highlightDecoration = const BoxDecoration(
backgroundColor: const Color.fromARGB(102, 153, 153, 153)
);
@@ -17,8 +19,6 @@ class MenuItem extends ButtonBase {
String icon;
GestureEventListener onGestureTap;
- MenuItem({ Object key, this.icon, this.children, this.onGestureTap }) : super(key: key);
-
UINode buildContent() {
return new EventListenerNode(
new Container(
@@ -46,4 +46,5 @@ class MenuItem extends ButtonBase {
onGestureTap: onGestureTap
);
}
+
}
« no previous file with comments | « sky/sdk/lib/framework/components2/material.dart ('k') | sky/sdk/lib/framework/components2/modal_overlay.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698