Added "pull to refresh" to Talk Roomlist

This commit is contained in:
Elias Müller 2023-02-21 14:31:46 +01:00
parent 8357b07c7b
commit d5179d5e3d

@ -90,7 +90,14 @@ class _ChatListState extends State<ChatList> {
));
}
return ListView(children: chats);
return RefreshIndicator(
color: Theme.of(context).primaryColor,
onRefresh: () {
Provider.of<ChatListProps>(context, listen: false).run();
return Future.delayed(const Duration(seconds: 3));
},
child: ListView(children: chats),
);
},
);
}