mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-03 19:54:12 +00:00 
			
		
		
		
	Fix pages navigation issue
This commit is contained in:
		@@ -87,7 +87,9 @@ abstract class MainController extends State<MainRoute> {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  /// Open user page
 | 
					  /// Open user page
 | 
				
			||||||
  void openUserPage(int userID) => pushPage(PageInfo(
 | 
					  void openUserPage(int userID) => pushPage(PageInfo(
 | 
				
			||||||
      type: PageType.USER_PAGE, child: UserPageScreen(userID: userID)));
 | 
					      type: PageType.USER_PAGE,
 | 
				
			||||||
 | 
					      child: UserPageScreen(userID: userID),
 | 
				
			||||||
 | 
					      id: userID));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  void openUserAccessDeniedPage(int userID) =>
 | 
					  void openUserAccessDeniedPage(int userID) =>
 | 
				
			||||||
      pushPage(PageInfo(child: UserAccessDeniedScreen(userID: userID)));
 | 
					      pushPage(PageInfo(child: UserAccessDeniedScreen(userID: userID)));
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -22,7 +22,10 @@ class PageInfo {
 | 
				
			|||||||
  final bool hideNavBar;
 | 
					  final bool hideNavBar;
 | 
				
			||||||
  final bool canShowAsDialog;
 | 
					  final bool canShowAsDialog;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const PageInfo({
 | 
					  /// Unique identification of this child
 | 
				
			||||||
 | 
					  final key = UniqueKey();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  PageInfo({
 | 
				
			||||||
    this.type = PageType.OTHER_PAGE,
 | 
					    this.type = PageType.OTHER_PAGE,
 | 
				
			||||||
    @required this.child,
 | 
					    @required this.child,
 | 
				
			||||||
    this.id,
 | 
					    this.id,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -73,9 +73,10 @@ class _TabletRouteState extends MainController {
 | 
				
			|||||||
      );
 | 
					      );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  Widget _buildRightPane() => Container(
 | 
					  Widget _buildRightPane() => Container(
 | 
				
			||||||
        width: MediaQuery.of(context).size.width - _SideBarSize,
 | 
					      key: currentPage.key,
 | 
				
			||||||
        child: currentPage.child,
 | 
					      width: MediaQuery.of(context).size.width - _SideBarSize,
 | 
				
			||||||
      );
 | 
					      child: currentPage.child,
 | 
				
			||||||
 | 
					    );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  @override
 | 
					  @override
 | 
				
			||||||
  void pushPage(PageInfo page) {
 | 
					  void pushPage(PageInfo page) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user