diff --git a/lib/screen/pages/talk/chatList.dart b/lib/screen/pages/talk/chatList.dart index 88358f7..c3f52e7 100644 --- a/lib/screen/pages/talk/chatList.dart +++ b/lib/screen/pages/talk/chatList.dart @@ -90,7 +90,14 @@ class _ChatListState extends State { )); } - return ListView(children: chats); + return RefreshIndicator( + color: Theme.of(context).primaryColor, + onRefresh: () { + Provider.of(context, listen: false).run(); + return Future.delayed(const Duration(seconds: 3)); + }, + child: ListView(children: chats), + ); }, ); }