Skip to content

Commit

Permalink
Merge pull request #41 from Tawkie/feature-hide-space-avatar-stack
Browse files Browse the repository at this point in the history
Feature hide space avatar stack
  • Loading branch information
ignyx authored Sep 12, 2024
2 parents e0a0958 + 26a1bd3 commit c8fe4b0
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions lib/pages/chat_list/chat_list_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -114,25 +114,25 @@ class ChatListItem extends StatelessWidget {
height: Avatar.defaultSize,
child: Stack(
children: [
if (space != null)
Positioned(
top: 0,
left: 0,
child: Avatar(
border: BorderSide(
width: 2,
color: backgroundColor ??
Theme.of(context).colorScheme.surface,
),
borderRadius: BorderRadius.circular(
AppConfig.borderRadius / 4,
),
mxContent: space.avatar,
size: Avatar.defaultSize * 0.75,
name: space.getLocalizedDisplayname(),
onTap: () => onLongPress?.call(context),
),
),
// if (space != null)
// Positioned(
// top: 0,
// left: 0,
// child: Avatar(
// border: BorderSide(
// width: 2,
// color: backgroundColor ??
// Theme.of(context).colorScheme.surface,
// ),
// borderRadius: BorderRadius.circular(
// AppConfig.borderRadius / 4,
// ),
// mxContent: space.avatar,
// size: Avatar.defaultSize * 0.75,
// name: space.getLocalizedDisplayname(),
// onTap: () => onLongPress?.call(context),
// ),
// ),
Positioned(
bottom: 0,
right: 0,
Expand All @@ -151,7 +151,7 @@ class ChatListItem extends StatelessWidget {
: null,
mxContent: room.avatar,
size: space != null
? Avatar.defaultSize * 0.75
? Avatar.defaultSize
: Avatar.defaultSize,
name: displayname,
presenceUserId: directChatMatrixId,
Expand Down

0 comments on commit c8fe4b0

Please sign in to comment.