mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 12:14:11 +00:00 
			
		
		
		
	Remove useless column
This commit is contained in:
		@@ -93,7 +93,9 @@ class _UserPageScreenState extends State<UserPageScreen> {
 | 
			
		||||
      body: RefreshIndicator(
 | 
			
		||||
        key: _refreshIndicatorKey,
 | 
			
		||||
        child: ListView(
 | 
			
		||||
          children: <Widget>[_buildHeader(), _buildBody()],
 | 
			
		||||
          children: <Widget>[]
 | 
			
		||||
            ..add(_buildHeader())
 | 
			
		||||
            ..addAll(_buildBody()),
 | 
			
		||||
          physics: AlwaysScrollableScrollPhysics(),
 | 
			
		||||
          controller: _scrollWatcher,
 | 
			
		||||
        ),
 | 
			
		||||
@@ -155,29 +157,27 @@ class _UserPageScreenState extends State<UserPageScreen> {
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  Widget _buildBody() {
 | 
			
		||||
    return Column(
 | 
			
		||||
      children: <Widget>[
 | 
			
		||||
        // Posts create form
 | 
			
		||||
        _userInfo.canPostTexts
 | 
			
		||||
            ? PostCreateFormWidget(
 | 
			
		||||
                postTarget: PostTarget.USER_PAGE,
 | 
			
		||||
                targetID: _userInfo.id,
 | 
			
		||||
                onCreated: _postCreated,
 | 
			
		||||
              )
 | 
			
		||||
            : Container(),
 | 
			
		||||
  List<Widget> _buildBody() {
 | 
			
		||||
    return <Widget>[
 | 
			
		||||
      // Posts create form
 | 
			
		||||
      _userInfo.canPostTexts
 | 
			
		||||
          ? PostCreateFormWidget(
 | 
			
		||||
              postTarget: PostTarget.USER_PAGE,
 | 
			
		||||
              targetID: _userInfo.id,
 | 
			
		||||
              onCreated: _postCreated,
 | 
			
		||||
            )
 | 
			
		||||
          : Container(),
 | 
			
		||||
 | 
			
		||||
        // Posts list
 | 
			
		||||
        PostsListWidget(
 | 
			
		||||
          key: _postListKey,
 | 
			
		||||
          getPostsList: () => _postsHelper.getUserPosts(widget.userID),
 | 
			
		||||
          getOlder: (from) =>
 | 
			
		||||
              _postsHelper.getUserPosts(widget.userID, from: from),
 | 
			
		||||
          showPostsTarget: false,
 | 
			
		||||
          buildListView: false,
 | 
			
		||||
        ),
 | 
			
		||||
      ],
 | 
			
		||||
    );
 | 
			
		||||
      // Posts list
 | 
			
		||||
      PostsListWidget(
 | 
			
		||||
        key: _postListKey,
 | 
			
		||||
        getPostsList: () => _postsHelper.getUserPosts(widget.userID),
 | 
			
		||||
        getOlder: (from) =>
 | 
			
		||||
            _postsHelper.getUserPosts(widget.userID, from: from),
 | 
			
		||||
        showPostsTarget: false,
 | 
			
		||||
        buildListView: false,
 | 
			
		||||
      ),
 | 
			
		||||
    ];
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /// Method called each time a menu option is selected
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user