fix(mobile): places search not working in beta version (#20284)

fix(mobile): places search not working
This commit is contained in:
Yaros 2025-07-26 13:30:57 +02:00 committed by GitHub
parent f2141de5bb
commit f9847bee51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(),
);
}
}