Commit 7a4557c9 authored by Hans Muller's avatar Hans Muller

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

workaround for Fitness demo dialog cancel bug
parents 8e45c375 d55425a3
......@@ -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);
});
}
......
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