1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-21 09:15:17 +00:00

Can call MainController from dialogs

This commit is contained in:
2020-05-09 14:18:09 +02:00
parent 4367dcc728
commit b23aa782b8
3 changed files with 21 additions and 10 deletions

View File

@ -55,7 +55,7 @@ class CurrPage {
}
/// Private implementation of HomeController
class _MainRouteState extends State<MainRoute> implements MainController {
class _MainRouteState extends MainController {
CurrPage get _currTab => history.last;
List<CurrPage> history = List();
@ -67,7 +67,7 @@ class _MainRouteState extends State<MainRoute> implements MainController {
}
/// Pop the page
void popPage() {
void doPopPage() {
if (history.length > 1) history.removeLast();
setState(() {});
}