Commit d55425a3 authored by Hans Muller's avatar Hans Muller

workaround for Fitness demo dialog cancel bug

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