Created
December 3, 2018 17:40
-
-
Save kenzieschmoll/0335416940420ba680e0fdceaaad2c8f to your computer and use it in GitHub Desktop.
maps sample - onAddMarkerButtonPressed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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