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

Unified Diff: sky/sdk/lib/widgets/popup_menu.dart

Issue 1240573007: Make it possible to detect PopupMenuItem presses (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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/widgets/popup_menu.dart
diff --git a/sky/sdk/lib/widgets/popup_menu.dart b/sky/sdk/lib/widgets/popup_menu.dart
index 1512e0b3fd3c2846a7150e7a2714199c6de10441..864345b15da116ffc7346857f6ea8d456ca4ff32 100644
--- a/sky/sdk/lib/widgets/popup_menu.dart
+++ b/sky/sdk/lib/widgets/popup_menu.dart
@@ -121,8 +121,7 @@ class PopupMenu extends AnimatedComponent {
Widget build() {
int i = 0;
List<Widget> children = new List.from(items.map((Widget item) {
- double opacity = _opacityFor(i);
- return new PopupMenuItem(child: item, opacity: opacity);
+ return new Opacity(opacity: _opacityFor(i++), child: item);
}));
return new Opacity(

Powered by Google App Engine
This is Rietveld 408576698