| 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 f5101e9899550877bb0e796a1c95634605bec50a..79bb6f6856f25a33efd971501c8a90578132c183 100644
|
| --- a/sky/sdk/lib/widgets/popup_menu.dart
|
| +++ b/sky/sdk/lib/widgets/popup_menu.dart
|
| @@ -91,18 +91,20 @@ class PopupMenuController {
|
| class PopupMenu extends AnimatedComponent {
|
|
|
| PopupMenu({ String key, this.controller, this.items, this.level })
|
| - : super(key: key) {
|
| + : super(key: key);
|
| +
|
| + PopupMenuController controller;
|
| + List<PopupMenuItem> items;
|
| + int level;
|
| +
|
| + void initState() {
|
| _painter = new BoxPainter(new BoxDecoration(
|
| backgroundColor: Grey[50],
|
| borderRadius: 2.0,
|
| boxShadow: shadows[level]));
|
| - watchPerformance(controller.performance);
|
| + watch(controller.performance);
|
| }
|
|
|
| - PopupMenuController controller;
|
| - List<PopupMenuItem> items;
|
| - int level;
|
| -
|
| void syncFields(PopupMenu source) {
|
| controller = source.controller;
|
| items = source.items;
|
|
|