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); final ValueNotifier<String?> search = ValueNotifier(null);
return Scaffold( return Scaffold(
body: CustomScrollView( body: ValueListenableBuilder(
valueListenable: search,
builder: (context, searchValue, child) {
return CustomScrollView(
slivers: [ slivers: [
_PlaceSliverAppBar(search: search), _PlaceSliverAppBar(search: search),
_Map(search: search, currentLocation: currentLocation), _Map(search: search, currentLocation: currentLocation),
_PlaceList(search: search), _PlaceList(search: search),
], ],
);
},
), ),
); );
} }
@ -104,7 +109,9 @@ class _Map extends StatelessWidget {
), ),
), ),
) )
: const SizedBox.shrink(); : const SliverToBoxAdapter(
child: SizedBox.shrink(),
);
} }
} }