mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 04:04:18 +00:00 
			
		
		
		
	Can show user account image in full screen
This commit is contained in:
		@@ -131,7 +131,11 @@ class _UserPageScreenState extends State<UserPageScreen> {
 | 
				
			|||||||
        padding: const EdgeInsets.all(8.0),
 | 
					        padding: const EdgeInsets.all(8.0),
 | 
				
			||||||
        child: Row(
 | 
					        child: Row(
 | 
				
			||||||
          children: <Widget>[
 | 
					          children: <Widget>[
 | 
				
			||||||
            AccountImageWidget(user: _userInfo),
 | 
					            InkWell(
 | 
				
			||||||
 | 
					              onTap: () =>
 | 
				
			||||||
 | 
					                  showImageFullScreen(context, _userInfo.accountImageURL),
 | 
				
			||||||
 | 
					              child: AccountImageWidget(user: _userInfo),
 | 
				
			||||||
 | 
					            ),
 | 
				
			||||||
            Text(" ${_userInfo.displayName}"),
 | 
					            Text(" ${_userInfo.displayName}"),
 | 
				
			||||||
            Spacer(),
 | 
					            Spacer(),
 | 
				
			||||||
            IconButton(
 | 
					            IconButton(
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -12,8 +12,11 @@ class AccountImageWidget extends StatelessWidget {
 | 
				
			|||||||
  final User user;
 | 
					  final User user;
 | 
				
			||||||
  final double width;
 | 
					  final double width;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const AccountImageWidget({Key key, this.user, this.width = 35.0})
 | 
					  const AccountImageWidget({
 | 
				
			||||||
      : assert(user != null),
 | 
					    Key key,
 | 
				
			||||||
 | 
					    this.user,
 | 
				
			||||||
 | 
					    this.width = 35.0,
 | 
				
			||||||
 | 
					  })  : assert(user != null),
 | 
				
			||||||
        super(key: key);
 | 
					        super(key: key);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  @override
 | 
					  @override
 | 
				
			||||||
@@ -25,22 +28,22 @@ class AccountImageWidget extends StatelessWidget {
 | 
				
			|||||||
        height: width,
 | 
					        height: width,
 | 
				
			||||||
        fit: BoxFit.cover,
 | 
					        fit: BoxFit.cover,
 | 
				
			||||||
        placeholder: (c, s) => Container(
 | 
					        placeholder: (c, s) => Container(
 | 
				
			||||||
              color: Colors.grey,
 | 
					          color: Colors.grey,
 | 
				
			||||||
              width: width,
 | 
					          width: width,
 | 
				
			||||||
              height: width,
 | 
					          height: width,
 | 
				
			||||||
              child: CircularProgressIndicator(
 | 
					          child: CircularProgressIndicator(
 | 
				
			||||||
                strokeWidth: 7.0,
 | 
					            strokeWidth: 7.0,
 | 
				
			||||||
              ),
 | 
					          ),
 | 
				
			||||||
            ),
 | 
					        ),
 | 
				
			||||||
        errorWidget: (c, s, o) => Container(
 | 
					        errorWidget: (c, s, o) => Container(
 | 
				
			||||||
              color: Colors.red,
 | 
					          color: Colors.red,
 | 
				
			||||||
              width: width,
 | 
					          width: width,
 | 
				
			||||||
              height: width,
 | 
					          height: width,
 | 
				
			||||||
              child: Icon(
 | 
					          child: Icon(
 | 
				
			||||||
                Icons.error,
 | 
					            Icons.error,
 | 
				
			||||||
                color: Colors.white,
 | 
					            color: Colors.white,
 | 
				
			||||||
              ),
 | 
					          ),
 | 
				
			||||||
            ),
 | 
					        ),
 | 
				
			||||||
      ),
 | 
					      ),
 | 
				
			||||||
      borderRadius: BorderRadius.all(
 | 
					      borderRadius: BorderRadius.all(
 | 
				
			||||||
        Radius.circular(18.0),
 | 
					        Radius.circular(18.0),
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user