mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-20 16:55:17 +00:00
Fix refresh issue
This commit is contained in:
@ -101,10 +101,14 @@ abstract class MainController extends State<MainRoute> {
|
||||
PageInfo(type: PageType.LATEST_POSTS_PAGE, child: NewestPostsScreen()));
|
||||
|
||||
/// Open user page
|
||||
void openUserPage(int userID) => pushPage(PageInfo(
|
||||
type: PageType.USER_PAGE,
|
||||
child: UserPageScreen(userID: userID),
|
||||
id: userID));
|
||||
void openUserPage(int userID) {
|
||||
final key = GlobalKey();
|
||||
pushPage(PageInfo(
|
||||
type: PageType.USER_PAGE,
|
||||
child: UserPageScreen(userID: userID, key: key),
|
||||
id: userID,
|
||||
widgetKey: key));
|
||||
}
|
||||
|
||||
void openUserAccessDeniedPage(int userID) =>
|
||||
pushPage(PageInfo(child: UserAccessDeniedScreen(userID: userID)));
|
||||
|
@ -24,6 +24,7 @@ class PageInfo {
|
||||
|
||||
/// Unique identification of this child
|
||||
final key = UniqueKey();
|
||||
final GlobalKey? widgetKey;
|
||||
|
||||
PageInfo({
|
||||
this.type = PageType.OTHER_PAGE,
|
||||
@ -31,5 +32,6 @@ class PageInfo {
|
||||
this.id,
|
||||
this.hideNavBar = false,
|
||||
this.canShowAsDialog = false,
|
||||
this.widgetKey
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user