1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-12-26 12:58:51 +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