Improve consistency when handling colors in surveys.#233
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
| if let submitButtonTextColor = appearance.submitButtonTextColor { | ||
| appearanceDict["submitButtonTextColor"] = submitButtonTextColor | ||
| } | ||
| if let textColor = appearance.textColor { |
There was a problem hiding this comment.
Did not check but is Android side consistent with these changes as well?
There was a problem hiding this comment.
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.
no, just the infra that powers the other SDKs
There was a problem hiding this comment.
@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.
@ioannisj mind peeping again? ios and android have been released, bumped both min versions here
There was a problem hiding this comment.
Yeah, thanx for this. Already approved so all good
1f5f2cf to
ae18fcb
Compare
marandaneto
left a comment
There was a problem hiding this comment.
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