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 31e2e53
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 2.3.1+55
version: 2.3.2+56

environment:
sdk: '>=3.1.0 <4.0.0'
Expand Down

0 comments on commit 31e2e53

Please sign in to comment.