mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 16:25:17 +00:00
Can refresh the list of latest posts
This commit is contained in:
@ -114,10 +114,13 @@ class _PostsListWidgetState extends State<PostsListWidget> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildListView() {
|
Widget _buildListView() {
|
||||||
return ListView.builder(
|
return RefreshIndicator(
|
||||||
|
child: ListView.builder(
|
||||||
itemCount: _list.length,
|
itemCount: _list.length,
|
||||||
itemBuilder: _buildItem,
|
itemBuilder: _buildItem,
|
||||||
controller: _scrollController,
|
controller: _scrollController,
|
||||||
|
),
|
||||||
|
onRefresh: () => _loadPostsList(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user