mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:17:11 -05:00 
			
		
		
		
	fix(mobile): places search not working in beta version (#20284)
fix(mobile): places search not working
This commit is contained in:
		
							parent
							
								
									f2141de5bb
								
							
						
					
					
						commit
						f9847bee51
					
				@ -22,12 +22,17 @@ class DriftPlacePage extends StatelessWidget {
 | 
			
		||||
    final ValueNotifier<String?> search = ValueNotifier(null);
 | 
			
		||||
 | 
			
		||||
    return Scaffold(
 | 
			
		||||
      body: CustomScrollView(
 | 
			
		||||
        slivers: [
 | 
			
		||||
          _PlaceSliverAppBar(search: search),
 | 
			
		||||
          _Map(search: search, currentLocation: currentLocation),
 | 
			
		||||
          _PlaceList(search: search),
 | 
			
		||||
        ],
 | 
			
		||||
      body: ValueListenableBuilder(
 | 
			
		||||
        valueListenable: search,
 | 
			
		||||
        builder: (context, searchValue, child) {
 | 
			
		||||
          return CustomScrollView(
 | 
			
		||||
            slivers: [
 | 
			
		||||
              _PlaceSliverAppBar(search: search),
 | 
			
		||||
              _Map(search: search, currentLocation: currentLocation),
 | 
			
		||||
              _PlaceList(search: search),
 | 
			
		||||
            ],
 | 
			
		||||
          );
 | 
			
		||||
        },
 | 
			
		||||
      ),
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
@ -104,7 +109,9 @@ class _Map extends StatelessWidget {
 | 
			
		||||
              ),
 | 
			
		||||
            ),
 | 
			
		||||
          )
 | 
			
		||||
        : const SizedBox.shrink();
 | 
			
		||||
        : const SliverToBoxAdapter(
 | 
			
		||||
            child: SizedBox.shrink(),
 | 
			
		||||
          );
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user