From f9847bee519192e98efedfc6c123d73b79dd14c9 Mon Sep 17 00:00:00 2001 From: Yaros Date: Sat, 26 Jul 2025 13:30:57 +0200 Subject: [PATCH] fix(mobile): places search not working in beta version (#20284) fix(mobile): places search not working --- .../presentation/pages/drift_place.page.dart | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/mobile/lib/presentation/pages/drift_place.page.dart b/mobile/lib/presentation/pages/drift_place.page.dart index 3e0754f8b8..969bfc70fd 100644 --- a/mobile/lib/presentation/pages/drift_place.page.dart +++ b/mobile/lib/presentation/pages/drift_place.page.dart @@ -22,12 +22,17 @@ class DriftPlacePage extends StatelessWidget { final ValueNotifier 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(), + ); } }