♻️ Better image loading animation and more commonly used blurhash
This commit is contained in:
@@ -427,15 +427,15 @@ class ChatRoomScreen extends HookConsumerWidget {
|
||||
child: SizedBox(
|
||||
height: 26,
|
||||
width: 26,
|
||||
child: (room!.type == 1 && room.picture?.id == null)
|
||||
child: (room!.type == 1 && room.picture == null)
|
||||
? SplitAvatarWidget(
|
||||
filesId: getValidMembers(
|
||||
files: getValidMembers(
|
||||
room.members!,
|
||||
).map((e) => e.account.profile.picture?.id).toList(),
|
||||
).map((e) => e.account.profile.picture).toList(),
|
||||
)
|
||||
: room.picture?.id != null
|
||||
: room.picture != null
|
||||
? ProfilePictureWidget(
|
||||
fileId: room.picture?.id,
|
||||
file: room.picture,
|
||||
fallbackIcon: Symbols.chat,
|
||||
)
|
||||
: CircleAvatar(
|
||||
@@ -473,15 +473,15 @@ class ChatRoomScreen extends HookConsumerWidget {
|
||||
child: SizedBox(
|
||||
height: 28,
|
||||
width: 28,
|
||||
child: (room!.type == 1 && room.picture?.id == null)
|
||||
child: (room!.type == 1 && room.picture == null)
|
||||
? SplitAvatarWidget(
|
||||
filesId: getValidMembers(
|
||||
files: getValidMembers(
|
||||
room.members!,
|
||||
).map((e) => e.account.profile.picture?.id).toList(),
|
||||
).map((e) => e.account.profile.picture).toList(),
|
||||
)
|
||||
: room.picture?.id != null
|
||||
: room.picture != null
|
||||
? ProfilePictureWidget(
|
||||
fileId: room.picture?.id,
|
||||
file: room.picture,
|
||||
fallbackIcon: Symbols.chat,
|
||||
)
|
||||
: CircleAvatar(
|
||||
|
||||
Reference in New Issue
Block a user