Skip to content

Instantly share code, notes, and snippets.

@kenzieschmoll
Last active February 28, 2019 01:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenzieschmoll/5bd83757013f9bbf71cc86c80619b648 to your computer and use it in GitHub Desktop.
Save kenzieschmoll/5bd83757013f9bbf71cc86c80619b648 to your computer and use it in GitHub Desktop.
Maps Sample V2 - change map appearance pt 2
void _onMapTypeButtonPressed() {
setState(() {
_currentMapType = _currentMapType == MapType.normal
? MapType.satellite
: MapType.normal;
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment