♻️ Better image loading animation and more commonly used blurhash

This commit is contained in:
2026-01-02 18:32:37 +08:00
parent f1f5113b01
commit 78c1a284a5
44 changed files with 2043 additions and 2185 deletions

View File

@@ -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(