Skip to content

Instantly share code, notes, and snippets.

@kenzieschmoll
Created December 3, 2018 17:40
Show Gist options
  • Save kenzieschmoll/0335416940420ba680e0fdceaaad2c8f to your computer and use it in GitHub Desktop.
Save kenzieschmoll/0335416940420ba680e0fdceaaad2c8f to your computer and use it in GitHub Desktop.
maps sample - onAddMarkerButtonPressed
void _onAddMarkerButtonPressed() {
mapController.addMarker(
MarkerOptions(
position: LatLng(
mapController.cameraPosition.target.latitude,
mapController.cameraPosition.target.longitude,
),
infoWindowText: InfoWindowText('Random Place', '5 Star Rating'),
icon: BitmapDescriptor.defaultMarker,
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment