1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 12:59:21 +00:00

Automatically refresh groups list

This commit is contained in:
Pierre HUBERT 2020-04-15 14:34:48 +02:00
parent 8d49a80e79
commit b52748a93b

View File

@ -58,7 +58,11 @@ class _GroupsListScreenState extends SafeState<GroupsListScreen> {
.map((g) => ListTile(
leading: GroupIcon(group: g),
title: Text(g.displayName),
subtitle: GroupMembershipWidget(group: g),
subtitle: GroupMembershipWidget(
group: g,
onUpdated: () =>
_refreshIndicatorKey.currentState.show(),
),
trailing: IconButton(
icon: Icon(Icons.delete),
onPressed: () => _deleteGroup(g)),