1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-26 06:49:22 +00:00

Remove useless column

This commit is contained in:
Pierre HUBERT 2020-04-16 14:27:55 +02:00
parent 69f8710f31
commit 3fa45f9744

View File

@ -93,7 +93,9 @@ class _UserPageScreenState extends State<UserPageScreen> {
body: RefreshIndicator( body: RefreshIndicator(
key: _refreshIndicatorKey, key: _refreshIndicatorKey,
child: ListView( child: ListView(
children: <Widget>[_buildHeader(), _buildBody()], children: <Widget>[]
..add(_buildHeader())
..addAll(_buildBody()),
physics: AlwaysScrollableScrollPhysics(), physics: AlwaysScrollableScrollPhysics(),
controller: _scrollWatcher, controller: _scrollWatcher,
), ),
@ -155,9 +157,8 @@ class _UserPageScreenState extends State<UserPageScreen> {
); );
} }
Widget _buildBody() { List<Widget> _buildBody() {
return Column( return <Widget>[
children: <Widget>[
// Posts create form // Posts create form
_userInfo.canPostTexts _userInfo.canPostTexts
? PostCreateFormWidget( ? PostCreateFormWidget(
@ -176,8 +177,7 @@ class _UserPageScreenState extends State<UserPageScreen> {
showPostsTarget: false, showPostsTarget: false,
buildListView: false, buildListView: false,
), ),
], ];
);
} }
/// Method called each time a menu option is selected /// Method called each time a menu option is selected