Fix chat users list not rebuilding on refresh
This commit is contained in:
parent
89133e30dc
commit
3739df3ae4
1 changed files with 4 additions and 1 deletions
|
|
@ -84,7 +84,10 @@ class _ChattersListState extends State<ChattersList> {
|
|||
),
|
||||
Expanded(
|
||||
child: RefreshIndicator(
|
||||
onRefresh: () => widget.chatDetails.updateChatters(widget.userLogin),
|
||||
onRefresh: () async {
|
||||
await widget.chatDetails.updateChatters(widget.userLogin);
|
||||
setState(() {});
|
||||
},
|
||||
child: Stack(
|
||||
alignment: AlignmentDirectional.bottomCenter,
|
||||
children: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue