-
Notifications
You must be signed in to change notification settings - Fork 39
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
feat!: Added nameTextStyle #132
Conversation
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.
let's add a test
also, I'll re-generate goldens via CI before merge rather than having you do it locally to ensure we don't see breakages on CI.
Test added ✅ |
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.
Couple comments, I'll leave most of the review process to @btrautmann since he has more context.
If you ask me, LGTM.
lib/src/golden_test_scenario.dart
Outdated
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.
General question: why is this PR considered breaking? Seems like all that's being done is add an optional property 👀
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.
required this.nameTextStyle,
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, this tracks, as if you were using the constructor directly you'd break when updating. It begs the question whether we should've made that constructor public or whether all properties should be optional since all our defaults will likely be const
anyway. Either way, I don't think that's something we need to solve as part of this PR.
@vanlooverenkoen can you actually revert the change you made to the golden image? It's failing on CI because of a very minor difference between the image being generated on (what I assume is) macOS (your host machine) and CI. If you revert it, it will fail locally for you but pass on CI which is correct/desired (well, not "desired" but the platform-rendering-difference is out of our control). |
Funny, that's the whole reason we made Alchemist 😆 |
@btrautmann I have reverted the golden tests |
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.
domain lgtm
platform lgtm
Description
Add support for name text styles to make sure your background & text color still readable
Type of Change