Added support for force refresh without caching, using this system on chatList.dart
This commit is contained in:
1 parent
d5179d5e3d
commit
97551738b0
6 files changed
+24
-10
No files matched your search
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user