1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-10-23 06:53:23 +00:00

Can refresh the list of latest posts

This commit is contained in:
Pierre HUBERT 2019-06-15 16:26:42 +02:00
parent 5c37aae000
commit 48f2db98b0

View File

@ -114,10 +114,13 @@ class _PostsListWidgetState extends State<PostsListWidget> {
}
Widget _buildListView() {
return ListView.builder(
return RefreshIndicator(
child: ListView.builder(
itemCount: _list.length,
itemBuilder: _buildItem,
controller: _scrollController,
),
onRefresh: () => _loadPostsList(),
);
}