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:
@ -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(
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user