-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Add VisualDensitySetting
class.
#624
Conversation
To view this pull requests documentation preview, visit the following URL: docs.page/sharezoneapp/sharezone-app~624 Documentation is deployed and generated using docs.page. |
data: { | ||
'visual_density': { | ||
'horizontal': value.horizontal, | ||
'vertical': value.vertical | ||
} | ||
// bool is not allowed in firebase_analytics so we use `toString`. | ||
'isAdaptivePlatformDensity': value.isAdaptivePlatformDensity.toString(), | ||
'horizontal': value.visualDensity.horizontal, | ||
'vertical': value.visualDensity.vertical | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The old code would have always thrown an error here since the map inside map ('data:': { 'visual_density': {...}}) is not allowed by firebase_analytics.
Visit the preview URL for this PR (updated for commit a94fa0f): https://sharezone-test--pr624-theme-settings-visua-n7iwvicu.web.app (expires Wed, 26 Apr 2023 19:30:29 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 4cb3ae61e1e018abfd9841fd3239f5b49ccc034b |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This class is a prerequisite for #79.
With this class we can track if the user has manually chosen a specific
VisualDensity
or if they use the defaultVisualDensity.adaptivePlatformDensity
(one can't tell by looking just at theVisualDensity
class).