mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
fix(mobile): add keys for person tiles in search (#27689)
* fix(mobile): key for person tiles in search * chore: add key to avatar * chore: use simple personId * chore: rename key in person page
This commit is contained in:
@@ -89,7 +89,7 @@ class _DriftPeopleCollectionPageState extends ConsumerState<DriftPeopleCollectio
|
|||||||
shape: const CircleBorder(side: BorderSide.none),
|
shape: const CircleBorder(side: BorderSide.none),
|
||||||
elevation: 3,
|
elevation: 3,
|
||||||
child: CircleAvatar(
|
child: CircleAvatar(
|
||||||
key: ValueKey('avatar-${person.id}'),
|
key: ValueKey(person.id),
|
||||||
maxRadius: isTablet ? 100 / 2 : 96 / 2,
|
maxRadius: isTablet ? 100 / 2 : 96 / 2,
|
||||||
backgroundImage: RemoteImageProvider(url: getFaceThumbnailUrl(person.id)),
|
backgroundImage: RemoteImageProvider(url: getFaceThumbnailUrl(person.id)),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ class PeoplePicker extends HookConsumerWidget {
|
|||||||
final isSelected = selectedPeople.value.contains(person);
|
final isSelected = selectedPeople.value.contains(person);
|
||||||
|
|
||||||
return Padding(
|
return Padding(
|
||||||
|
key: ValueKey(person.id),
|
||||||
padding: const EdgeInsets.only(bottom: 2.0),
|
padding: const EdgeInsets.only(bottom: 2.0),
|
||||||
child: LargeLeadingTile(
|
child: LargeLeadingTile(
|
||||||
title: Text(
|
title: Text(
|
||||||
@@ -73,6 +74,7 @@ class PeoplePicker extends HookConsumerWidget {
|
|||||||
shape: const CircleBorder(side: BorderSide.none),
|
shape: const CircleBorder(side: BorderSide.none),
|
||||||
elevation: 3,
|
elevation: 3,
|
||||||
child: CircleAvatar(
|
child: CircleAvatar(
|
||||||
|
key: ValueKey(person.id),
|
||||||
maxRadius: imageSize / 2,
|
maxRadius: imageSize / 2,
|
||||||
backgroundImage: RemoteImageProvider(url: getFaceThumbnailUrl(person.id)),
|
backgroundImage: RemoteImageProvider(url: getFaceThumbnailUrl(person.id)),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user