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

Provide Settings globally #73

Open
ttencate opened this issue Jun 18, 2020 · 0 comments
Open

Provide Settings globally #73

ttencate opened this issue Jun 18, 2020 · 0 comments
Labels
area:app The app itself kind:cleanup Refactoring and other code improvements

Comments

@ttencate
Copy link
Owner

ttencate commented Jun 18, 2020

Injecting and passing Settings everywhere (mostly to translate species names) is becoming tedious.

Just put a ChangeNotifierProvider all the way at the top level so a change in Settings rebuilds everything. If no Profile is currently selected, we can still provide some default Settings (or null if we're feeling lucky).

@ttencate ttencate added area:app The app itself kind:cleanup Refactoring and other code improvements labels Jun 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:app The app itself kind:cleanup Refactoring and other code improvements
Projects
None yet
Development

No branches or pull requests

1 participant