1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 12:59:21 +00:00

Attempt to fix issue

This commit is contained in:
Pierre HUBERT 2021-04-24 10:47:13 +02:00
parent 90996d6be7
commit 64c71450ff

View File

@ -26,9 +26,14 @@ class ForezRoute extends StatefulWidget implements MainRoute {
/// Private implementation of HomeController /// Private implementation of HomeController
class _MainRouteState extends MainController { class _MainRouteState extends MainController {
final GlobalKey<_ForezRouteBodyState> _mainKey = GlobalKey();
@override @override
PageInfo get defaultPage => PageInfo( PageInfo get defaultPage => PageInfo(
type: PageType.OTHER_PAGE, child: ForezRouteBody(), hideNavBar: true); type: PageType.OTHER_PAGE,
child: ForezRouteBody(key: _mainKey),
hideNavBar: true,
);
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
@ -62,6 +67,8 @@ class _MainRouteState extends MainController {
enum _PopupMenuItems { ACTION_SETTINGS, ACTION_SIGN_OUT } enum _PopupMenuItems { ACTION_SETTINGS, ACTION_SIGN_OUT }
class ForezRouteBody extends StatefulWidget { class ForezRouteBody extends StatefulWidget {
ForezRouteBody({Key key}) : super(key: key);
@override @override
_ForezRouteBodyState createState() => _ForezRouteBodyState(); _ForezRouteBodyState createState() => _ForezRouteBodyState();
} }