fix: added configurable padding
Description
Add the option to use padding around a GoldenTestScenario
Type of Change
- [X] โจ New feature (non-breaking change which adds functionality)
- [ ] ๐ ๏ธ Bug fix (non-breaking change which fixes an issue)
- [ ] โ Breaking change (fix or feature that would cause existing functionality to change)
- [ ] ๐งน Code refactor
- [ ] โ Build configuration change
- [ ] ๐ Documentation
- [ ] ๐๏ธ Chore
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)
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 GoldenTestTheme created a nice place to put these optional parameters. I'm cool with this ๐
Test added โ
Is this purely used for aesthetics?
it seems in 0.10.0, a breaking change was introduced that removed the padding ( 5139917e4064811c2dadc153ffcf40f07f102459 ). 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.
Is this purely used for aesthetics?
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.
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+
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
@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?
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? ๐
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)