mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:17:11 -05: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) {
 | 
					  Widget build(BuildContext context, WidgetRef ref) {
 | 
				
			||||||
    final peopleProvider =
 | 
					    final peopleProvider =
 | 
				
			||||||
        ref.watch(assetPeopleNotifierProvider(asset).notifier);
 | 
					        ref.watch(assetPeopleNotifierProvider(asset).notifier);
 | 
				
			||||||
    final people = ref.watch(assetPeopleNotifierProvider(asset));
 | 
					    final people = ref
 | 
				
			||||||
    final double imageSize = math.min(context.width / 3, 150);
 | 
					        .watch(assetPeopleNotifierProvider(asset))
 | 
				
			||||||
 | 
					        .value
 | 
				
			||||||
 | 
					        ?.where((p) => !p.isHidden);
 | 
				
			||||||
 | 
					    final double imageSize = math.min(context.width / 3, 120);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    showPersonNameEditModel(
 | 
					    showPersonNameEditModel(
 | 
				
			||||||
      String personId,
 | 
					      String personId,
 | 
				
			||||||
@ -40,15 +43,14 @@ class ExifPeople extends ConsumerWidget {
 | 
				
			|||||||
      });
 | 
					      });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (people.value?.isEmpty ?? true) {
 | 
					    if (people?.isEmpty ?? true) {
 | 
				
			||||||
      // Empty list or loading
 | 
					      // Empty list or loading
 | 
				
			||||||
      return Container();
 | 
					      return Container();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    final curatedPeople = people.value
 | 
					    final curatedPeople =
 | 
				
			||||||
            ?.map((p) => CuratedContent(id: p.id, label: p.name))
 | 
					        people?.map((p) => CuratedContent(id: p.id, label: p.name)).toList() ??
 | 
				
			||||||
            .toList() ??
 | 
					            [];
 | 
				
			||||||
        [];
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return Column(
 | 
					    return Column(
 | 
				
			||||||
      children: [
 | 
					      children: [
 | 
				
			||||||
 | 
				
			|||||||
@ -23,7 +23,7 @@ class CuratedPeopleRow extends StatelessWidget {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  @override
 | 
					  @override
 | 
				
			||||||
  Widget build(BuildContext context) {
 | 
					  Widget build(BuildContext context) {
 | 
				
			||||||
    const imageSize = 85.0;
 | 
					    const imageSize = 80.0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Guard empty [content]
 | 
					    // Guard empty [content]
 | 
				
			||||||
    if (content.isEmpty) {
 | 
					    if (content.isEmpty) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user