Skip to content

Commit

Permalink
fix(#62) : add a guard statement to avoid the empty allMarkers list e…
Browse files Browse the repository at this point in the history
…xception
  • Loading branch information
i-am-ijaz committed Jun 10, 2023
1 parent 05ae1c7 commit af3d69c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/app/config/geo_location.dart
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ class _GeoState extends State<Geo> {
zoom: 15),
onMapCreated: (GoogleMapController controller) {
_controller.complete(controller);
if (allMarkers.isEmpty) return;
setState(() {
markers[MarkerId(allMarkers.first.markerId.value)] =
allMarkers.first;
Expand Down

0 comments on commit af3d69c

Please sign in to comment.