-
Notifications
You must be signed in to change notification settings - Fork 59
Improve consistency when handling colors in surveys. #233
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
Conversation
Instructions and example for changelogPlease add an entry to ## Next
- Improve consistency when handling colors in surveys ([#233](https://github.com/PostHog/posthog-flutter/pull/233))If none of the above apply, you can opt out of this check by adding |
|
@PostHog/team-surveys hey guys, since you recently worked on themes for react-native, mind taking a look at this as well? |
|
thank you for this PR!!! taking a look now 😄 |
|
Thank you @adboio ! That's an even better solution than before! |
This stack of pull requests is managed by Graphite. Learn more about stacking. |
c739d2f to
1f5f2cf
Compare
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.
Just a couple of comments, lgtm. Did not do a test run though
Also we should run a make format before merging
| if let submitButtonTextColor = appearance.submitButtonTextColor { | ||
| appearanceDict["submitButtonTextColor"] = submitButtonTextColor | ||
| } | ||
| if let textColor = appearance.textColor { |
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.
Did not check but is Android side consistent with these changes as well?
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.
react-native, ios, and (now) flutter will all be consistent once this is merged
i didn't think android had any built-in survey UI rendering?
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.
no, just the infra that powers the other SDKs
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.
@adboio Hey what I mean is that we've made changes to iOS public models to support some new colors in this PR. And that's why we bumped the dependency here to 3.38.0 I assume
Android doesn't have a UI but has those same models which we use in PostHogDisplaySurveyExt.kt which is the counterpart file of this one
Can you validate that when running flutter on an Android device these changes still work?
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.
@ioannisj mind peeping again? ios and android have been released, bumped both min versions here
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.
Yeah, thanx for this. Already approved so all good
1f5f2cf to
ae18fcb
Compare
marandaneto
left a comment
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.
just unblocking here since @ioannisj did the review already
5a48b48 to
e8a0962
Compare
|
this was just merged to update android types: PostHog/posthog-android#399 so we need to:
|
Co-authored-by: Tate <wintermydog@gmail.com>
e8a0962 to
eb47aad
Compare
eb47aad to
9fc6669
Compare





Co-authored-by: Tate wintermydog@gmail.com
💡 Motivation and Context
This was written by Tate, but due to our projects not having the ability to allow external contributors at the moment I am sort of sponsoring this. I'll let Tate explain:
💚 How did you test it?
I, Kyle, modified the style of the example app on iOS and tested against a sample survey of varying colors and styles.
📝 Checklist