1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 08:15:16 +00:00

Highlight active user / group in memberships panel

This commit is contained in:
2020-05-11 13:50:13 +02:00
parent 1bd2bdd1aa
commit 773cf17da0
3 changed files with 41 additions and 18 deletions

View File

@ -99,7 +99,9 @@ abstract class MainController extends State<MainRoute> {
/// Open a specific group page specified by its [groupID]
void openGroup(int groupID) => pushPage(PageInfo(
type: PageType.GROUP_PAGE, child: GroupPageScreen(groupID: groupID)));
type: PageType.GROUP_PAGE,
child: GroupPageScreen(groupID: groupID),
id: groupID));
/// Display the list of friends of current user
void openFriendsList() => pushPage(

View File

@ -66,17 +66,17 @@ class _TabletRouteState extends MainController {
Container(height: 10),
GlobalSearchField(),
Container(height: 10),
Expanded(child: MembershipsPanel())
Expanded(child: MembershipsPanel(currentPage: currentPage))
],
),
),
);
Widget _buildRightPane() => Container(
key: currentPage.key,
width: MediaQuery.of(context).size.width - _SideBarSize,
child: currentPage.child,
);
key: currentPage.key,
width: MediaQuery.of(context).size.width - _SideBarSize,
child: currentPage.child,
);
@override
void pushPage(PageInfo page) {