mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 04:49:21 +00:00
Can refresh the list of latest posts
This commit is contained in:
parent
5c37aae000
commit
48f2db98b0
@ -114,10 +114,13 @@ class _PostsListWidgetState extends State<PostsListWidget> {
|
||||
}
|
||||
|
||||
Widget _buildListView() {
|
||||
return ListView.builder(
|
||||
itemCount: _list.length,
|
||||
itemBuilder: _buildItem,
|
||||
controller: _scrollController,
|
||||
return RefreshIndicator(
|
||||
child: ListView.builder(
|
||||
itemCount: _list.length,
|
||||
itemBuilder: _buildItem,
|
||||
controller: _scrollController,
|
||||
),
|
||||
onRefresh: () => _loadPostsList(),
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user