1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 12:59:21 +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() { Widget _buildListView() {
return ListView.builder( return RefreshIndicator(
itemCount: _list.length, child: ListView.builder(
itemBuilder: _buildItem, itemCount: _list.length,
controller: _scrollController, itemBuilder: _buildItem,
controller: _scrollController,
),
onRefresh: () => _loadPostsList(),
); );
} }