From d6f014733923f7f5e9b0a6ac41e8416a15683cd6 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 16 Apr 2020 08:43:41 +0200 Subject: [PATCH] Improve scrolling of Group Page --- lib/ui/screens/authorized_group_page_screen.dart | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/ui/screens/authorized_group_page_screen.dart b/lib/ui/screens/authorized_group_page_screen.dart index 0d84e4a..31ed35e 100644 --- a/lib/ui/screens/authorized_group_page_screen.dart +++ b/lib/ui/screens/authorized_group_page_screen.dart @@ -35,11 +35,11 @@ class _AuthorizedGroupPageScreenState extends State { @override Widget build(BuildContext context) { - return Column( - children: [ - _buildGroupPageHeader(), - Expanded(child: _buildGroupPagePostsList()) - ], + return RefreshIndicator( + onRefresh: () => widget.needRefresh(), + child: ListView( + children: [_buildGroupPageHeader(), _buildGroupPagePostsList()], + ), ); } @@ -90,6 +90,7 @@ class _AuthorizedGroupPageScreenState extends State { showPostsTarget: false, userNamesClickable: true, getOlder: (from) => PostsHelper().getGroupPosts(_group.id, from: from), + buildListView: false, ); } }