mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 16:25:17 +00:00
Show friends list as a dialog
This commit is contained in:
@ -115,8 +115,11 @@ abstract class MainController extends State<MainRoute> {
|
||||
id: groupID));
|
||||
|
||||
/// Display the list of friends of current user
|
||||
void openFriendsList() => pushPage(
|
||||
PageInfo(type: PageType.FRIENDS_LIST_PAGE, child: FriendsListScreen()));
|
||||
void openFriendsList() => pushPage(PageInfo(
|
||||
type: PageType.FRIENDS_LIST_PAGE,
|
||||
child: FriendsListScreen(),
|
||||
canShowAsDialog: true,
|
||||
));
|
||||
|
||||
/// Open search page
|
||||
void openSearchPage() => pushPage(PageInfo(child: SearchScreen()));
|
||||
@ -127,7 +130,10 @@ abstract class MainController extends State<MainRoute> {
|
||||
/// Display the list of friends of a user
|
||||
void openUserFriendsList(int id) {
|
||||
if (id != userID())
|
||||
pushPage(PageInfo(child: OtherUserFriendsListScreen(userID: id)));
|
||||
pushPage(PageInfo(
|
||||
child: OtherUserFriendsListScreen(userID: id),
|
||||
canShowAsDialog: true,
|
||||
));
|
||||
else
|
||||
openFriendsList();
|
||||
}
|
||||
|
Reference in New Issue
Block a user