mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00: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
1 changed files with 14 additions and 7 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue