perf: do not filter markers

This commit is contained in:
wuzihao051119 2025-07-16 18:18:51 +08:00 committed by mertalev
parent 5d722eef98
commit 94c073e58f
No known key found for this signature in database
GPG key ID: DF6ABC77AAD98C95
3 changed files with 22 additions and 12 deletions

View file

@ -41,7 +41,7 @@ class MapStateNotifier extends Notifier<MapState> {
// This provider watches the markers from the map service and serves the markers.
// It should be used only after the map service provider is overridden
final mapMarkerProvider =
StreamProvider.family<Map<String, dynamic>, LatLngBounds>(
StreamProvider.family<Map<String, dynamic>, LatLngBounds?>(
(ref, bounds) async* {
final mapService = ref.watch(mapServiceProvider);
yield* mapService.watchMarkers(bounds).map((markers) {