mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Merge pull request #460 from HansMuller/fitness-demo-dialog
workaround for Fitness demo dialog cancel bug
This commit is contained in:
commit
32558f70ff
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user