mirror of
https://github.com/immich-app/immich.git
synced 2024-11-24 08:52:28 +02:00
fix(mobile): do not show hidden people (#8072)
* fix(mobile): do not show hidden people * dart format fix
This commit is contained in:
parent
0bc773fd00
commit
9274c0701b
@ -22,8 +22,11 @@ class ExifPeople extends ConsumerWidget {
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final peopleProvider =
|
||||
ref.watch(assetPeopleNotifierProvider(asset).notifier);
|
||||
final people = ref.watch(assetPeopleNotifierProvider(asset));
|
||||
final double imageSize = math.min(context.width / 3, 150);
|
||||
final people = ref
|
||||
.watch(assetPeopleNotifierProvider(asset))
|
||||
.value
|
||||
?.where((p) => !p.isHidden);
|
||||
final double imageSize = math.min(context.width / 3, 120);
|
||||
|
||||
showPersonNameEditModel(
|
||||
String personId,
|
||||
@ -40,15 +43,14 @@ class ExifPeople extends ConsumerWidget {
|
||||
});
|
||||
}
|
||||
|
||||
if (people.value?.isEmpty ?? true) {
|
||||
if (people?.isEmpty ?? true) {
|
||||
// Empty list or loading
|
||||
return Container();
|
||||
}
|
||||
|
||||
final curatedPeople = people.value
|
||||
?.map((p) => CuratedContent(id: p.id, label: p.name))
|
||||
.toList() ??
|
||||
[];
|
||||
final curatedPeople =
|
||||
people?.map((p) => CuratedContent(id: p.id, label: p.name)).toList() ??
|
||||
[];
|
||||
|
||||
return Column(
|
||||
children: [
|
||||
|
@ -23,7 +23,7 @@ class CuratedPeopleRow extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
const imageSize = 85.0;
|
||||
const imageSize = 80.0;
|
||||
|
||||
// Guard empty [content]
|
||||
if (content.isEmpty) {
|
||||
|
Loading…
Reference in New Issue
Block a user