Skip to content

Instantly share code, notes, and snippets.

@pmutisya
Last active September 17, 2019 16:17
@override
Widget build(BuildContext context) {
bool isDark = MediaQuery.of(context).platformBrightness == Brightness.dark;
if (mapController != null ) {
if (isDark) {
mapController.setMapStyle(_darkMapStyle);
}
else {
mapController.setMapStyle(_normalMapStyle);
}
}
//...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment