From b52748a93b1f930d768bd4221a77db95642cf4ce Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Wed, 15 Apr 2020 14:34:48 +0200 Subject: [PATCH] Automatically refresh groups list --- lib/ui/screens/groups_list_screen.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/ui/screens/groups_list_screen.dart b/lib/ui/screens/groups_list_screen.dart index 289b56a..08291fa 100644 --- a/lib/ui/screens/groups_list_screen.dart +++ b/lib/ui/screens/groups_list_screen.dart @@ -58,7 +58,11 @@ class _GroupsListScreenState extends SafeState { .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)),