Added "pull to refresh" to Talk Roomlist
This commit is contained in:
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),
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user