-
Notifications
You must be signed in to change notification settings - Fork 36
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
fix: added configurable padding #133
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.
Is this purely used for aesthetics?
Because we have a lot of GoldenTestScenarios with the removal of the padding widget it is a lot harder to do visual pr review. The cognitive load is much higher when there is no padding. (I get that this is not required for everyone, that is why I made it optionally configurable) |
Understood. Yeah I think |
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.
Can we just add a test for this?
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 the rest to @btrautmann. Nice job!
it seems in 0.10.0, a breaking change was introduced that removed the padding ( 5139917 ). But since it is not documented, maybe it was an accidental change? If so, it might be better to introduce a default padding of 8dp as it used to be before. |
The change was intentional, I'd rather that padding be configurable than to add it back. |
ok, fine. just a suggestion: it might be helpful to document this change somewhere for users migrating to 0.10+ |
Yeah, apologies for not being more transparent in the changelog about the change. Once this lands (CC @vanlooverenkoen) I'll make sure to make note of it in the changelog indicating the correct path for migrating. |
@btrautmann fixed all comments |
thanks @vanlooverenkoen , i can confirm, using this branch, all our golden tests are green again 🥳 |
Nice!! Do you like the documentation I added? |
yes, clear to me 👌 I don't know if this project follows Effective dart doc recommendations though, specifically: |
@vanlooverenkoen thanks for updates; unfortunately it looks like we have a couple failing tests. |
@vanlooverenkoen any progress on this? 🙏 |
# Conflicts: # lib/src/golden_test_scenario.dart # lib/src/golden_test_theme.dart
Trying to fix these broken tests right now Sorry @mx1up and @btrautmann this got out of sight for a moment |
@mx1up & @btrautmann should be fixed (at least locally) |
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 the option to use padding around a GoldenTestScenario
Type of Change