Added support for force refresh without caching, using this system on chatList.dart
This commit is contained in:
@ -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