mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-03 19:54:12 +00:00 
			
		
		
		
	Start to show user information
This commit is contained in:
		@@ -1,9 +1,12 @@
 | 
			
		||||
import 'package:comunic/enums/post_target.dart';
 | 
			
		||||
import 'package:comunic/helpers/posts_helper.dart';
 | 
			
		||||
import 'package:comunic/models/advanced_user_info.dart';
 | 
			
		||||
import 'package:comunic/ui/widgets/account_image_widget.dart';
 | 
			
		||||
import 'package:comunic/ui/widgets/like_widget.dart';
 | 
			
		||||
import 'package:comunic/ui/widgets/post_create_form_widget.dart';
 | 
			
		||||
import 'package:comunic/ui/widgets/posts_list_widget.dart';
 | 
			
		||||
import 'package:flutter/material.dart';
 | 
			
		||||
import 'package:flutter/rendering.dart';
 | 
			
		||||
 | 
			
		||||
/// Tablet mode of user page
 | 
			
		||||
///
 | 
			
		||||
@@ -38,7 +41,12 @@ class _UserPageTabletState extends State<UserPageTablet> {
 | 
			
		||||
        ],
 | 
			
		||||
      );
 | 
			
		||||
 | 
			
		||||
  Widget _buildLeftColumn() => Text("Here comes the head");
 | 
			
		||||
  Widget _buildLeftColumn() => Column(
 | 
			
		||||
        children: <Widget>[
 | 
			
		||||
          _buildMainCard(),
 | 
			
		||||
          _buildAboutCard(),
 | 
			
		||||
        ],
 | 
			
		||||
      );
 | 
			
		||||
 | 
			
		||||
  Widget _buildRightColumn() => PostsListWidget(
 | 
			
		||||
        disablePullToRefresh: true,
 | 
			
		||||
@@ -56,4 +64,29 @@ class _UserPageTabletState extends State<UserPageTablet> {
 | 
			
		||||
            PostsHelper().getUserPosts(_userInfo.id, from: from),
 | 
			
		||||
        showPostsTarget: false,
 | 
			
		||||
      );
 | 
			
		||||
 | 
			
		||||
  Widget _buildMainCard() => ConstrainedBox(
 | 
			
		||||
        constraints: BoxConstraints(minWidth: 200),
 | 
			
		||||
        child: Card(
 | 
			
		||||
          child: Padding(
 | 
			
		||||
            padding: const EdgeInsets.all(8.0),
 | 
			
		||||
            child: Column(
 | 
			
		||||
              children: <Widget>[
 | 
			
		||||
                Center(child: AccountImageWidget(user: _userInfo, width: 75)),
 | 
			
		||||
                SizedBox(height: 10),
 | 
			
		||||
                Text(
 | 
			
		||||
                  _userInfo.displayName,
 | 
			
		||||
                  style: TextStyle(fontSize: 20),
 | 
			
		||||
                ),
 | 
			
		||||
                SizedBox(height: 10),
 | 
			
		||||
                SizedBox(height: 10),
 | 
			
		||||
                LikeWidget(likeElement: _userInfo),
 | 
			
		||||
                SizedBox(height: 10),
 | 
			
		||||
              ],
 | 
			
		||||
            ),
 | 
			
		||||
          ),
 | 
			
		||||
        ),
 | 
			
		||||
      );
 | 
			
		||||
 | 
			
		||||
  Widget _buildAboutCard() => Container();
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user