Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Valid theme for the Vectory Layer #8

Closed
paetzold opened this issue Jul 5, 2021 · 1 comment
Closed

Valid theme for the Vectory Layer #8

paetzold opened this issue Jul 5, 2021 · 1 comment

Comments

@paetzold
Copy link

paetzold commented Jul 5, 2021

I have issues getting the example running, it looks like

_mapTheme(BuildContext context) {
// maps are rendered using themes
// to provide a dark theme do something like this:
// if (MediaQuery.of(context).platformBrightness == Brightness.dark) return myDarkTheme();
return ProvidedThemes.lightTheme();
}

doesn't return a correct Theme, as the code throws this:

[VERBOSE-2:shell.cc(103)] Dart Unhandled Exception: NoSuchMethodError: The getter 'id' was called on null.
Receiver: null

Can you give add myDarkTheme() to the example ?

@greensopinion
Copy link
Owner

@paetzold thanks for the issue. Can you provide more detail as to the failure? ie. have you changed the code at all? When I run it from here it works fine so I'd like to understand more about the failure you're experiencing.

If you want a dark theme, you could try dark-matter-gl-style or you could make one using maputnik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants