Skip to content

Commit

Permalink
fix: map search by title and snippet (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
popoway committed Mar 5, 2024
1 parent 3060445 commit 7a2f7c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/map.dart
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,11 @@ class _MyMapPageState extends State<MyMapPage> {
.toLowerCase()
.contains(query.toLowerCase())) {
markersCurrent.add(marker);
} else if (marker.infoWindow.snippet != null &&
marker.infoWindow.snippet!
.toLowerCase()
.contains(query.toLowerCase())) {
markersCurrent.add(marker);
}
}
});
Expand Down

0 comments on commit 7a2f7c8

Please sign in to comment.