Added support for force refresh without caching, using this system on chatList.dart

This commit is contained in:
2023-02-21 14:58:31 +01:00
parent d5179d5e3d
commit 97551738b0
6 changed files with 24 additions and 10 deletions

View File

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