Merge pull request #460 from HansMuller/fitness-demo-dialog

workaround for Fitness demo dialog cancel bug
This commit is contained in:
Hans Muller 2015-08-05 09:01:10 -07:00
commit 32558f70ff

View File

@ -216,8 +216,9 @@ class FeedFragment extends StatefulComponent {
}
void _handleActionButtonPressed() {
showDialog(navigator, (navigator) => new AddItemDialog(navigator)).then((route) {
navigator.pushNamed(route);
showDialog(navigator, (navigator) => new AddItemDialog(navigator)).then((routeName) {
if (routeName != null)
navigator.pushNamed(routeName);
});
}