-
-
Save Aditsyal/7d0f293521d085e8e9a6cb32fc79dd21 to your computer and use it in GitHub Desktop.
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
Future<void> _goToNewYork() async { | |
double lat = 40.7128; | |
double long = -74.0060; | |
GoogleMapController controller = await _controller.future; | |
controller.animateCamera(CameraUpdate.newLatLngZoom(LatLng(lat, long), _zoom)); | |
setState(() { | |
_markers.add( | |
Marker( | |
markerId: MarkerId('newyork'), | |
position: LatLng(lat, long), | |
), | |
); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment