1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-10-23 06:53:23 +00:00

Handles correctly notifications

This commit is contained in:
Pierre HUBERT 2020-05-13 18:36:20 +02:00
parent 9a2efaae1c
commit e231f26231

View File

@ -59,7 +59,10 @@ abstract class MainController extends State<MainRoute> {
}
/// Push a new page
void pushPage(PageInfo page) => setState(() => _pagesStack.add(page));
void pushPage(PageInfo page) {
popUntilMainRoute();
setState(() => _pagesStack.add(page));
}
/// Pop current page. Do not call this method directly.
@protected