Dealing with copyWith nesting #759
Replies: 1 comment
-
|
We investigated a similar approach based on Draft awhile ago! I think that while this approach has some nice properties such as handling nullable types better, it only produces marginally better code:
All that said, I agree that |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I love this package so much I use it for almost all of my project, however one point that felt a bit annoying is when customizing something small like a padding or a color for just a specific widget I have to go into a deep nest of
copyWithstatements, a while ago i saw a post on reddit of a package called draft, and i was wondering if something like this could be implemented into forui.in the reddit post the author gave this example:
and this is one example in my code:
I think implementing something like draft would make editing styles much more pleasant.
Beta Was this translation helpful? Give feedback.
All reactions