Commit 08f2a275 authored by Adam Barth's avatar Adam Barth

Menu in StocksApp should animate out

This CL teaches PopupMenu how to animate out as well as in. Also, I've changed
the PopupMenuItem animations to be driven from the PopupMenu itself, which
makes it easier to run the animation in reverse when closing the menu.

TBR=rafaelw@chromium.org

Review URL: https://codereview.chromium.org/1033913002
parent 0abd3c9e
......@@ -145,9 +145,12 @@ class StocksApp extends App {
// TODO(abarth): We should close the menu when you tap away from the
// menu rather than when you tap on the menu.
setState(() {
_menuController.close();
_menuController.close().then((_) {
setState(() {
_menuController = null;
});
});
});
}
));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment