unique image tag

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-03-16 15:19:30 +08:00
parent ed66a4655b
commit 8a8aa6c1e0
5 changed files with 10 additions and 4 deletions

View File

@@ -90,6 +90,7 @@ Widget content(
),
if (pics != null && pics.isNotEmpty)
ImageGridView(
fullScreen: true,
picArr: pics
.map(
(item) => ImageModel(
@@ -100,7 +101,6 @@ Widget content(
),
)
.toList(),
fullScreen: true,
),
],
),

View File

@@ -429,7 +429,7 @@ class UserInfoCard extends StatelessWidget {
);
Widget _buildAvatar(bool hasPendant) => fromHero(
tag: card.face ?? '',
tag: '${card.face}$hashCode',
child: PendantAvatar(
avatar: card.face,
size: hasPendant ? kPendantAvatarSize : kAvatarSize,
@@ -440,6 +440,7 @@ class UserInfoCard extends StatelessWidget {
garbPendantImage: card.pendant?.image,
roomId: live?.liveStatus == 1 ? live!.roomid : null,
onTap: () => PageUtils.imageView(
tag: hashCode.toString(),
imgList: [SourceModel(url: card.face.http2https)],
),
),