Is there any reason `Modifier.padding` has no over...
# compose-web
l
Is there any reason
Modifier.padding
has no overload taking something other than a single value for all sides? I'd like to customize vertical, horizontal, or side specific padding like you can do on Android. Same question for
StyleBuilder.padding
. Also, I'm wondering why there's
StyleBuilder.marginLeft
and
StyleBuilder.marginTop
but none for right and bottom blob thinking upside down
d
It has several overloads iirc. One for each side, one for vertical and horizontal, one for all sides, etc.
Ah crap, this is compose web nvm.
d
@louiscad - likely it just comes down to resources and maturity of project? We know that the Web probably won't mirror Android/Desktop exactly; but regardless of that, in my recent journeys through today's Web modifiers, it does still look like there's a lot of low-hanging fruit to improve web, and bring it closer in capability (if not actual API) to 'full' Compose.
One I've been mulling is the
fillMaxWidth/Height(weight)
and whether that could be mapped to HTML FlexBox.
Personally, I'm trying not to get seduced by framework code this time and stay on target to build an App 😛
...as such I'll still build the shell of web but only flesh-out Android/Desktop; with the hope of coming back to a significantly improved web at the end, several months later.
While I've got you @louiscad; did you hit upon a satisfactory fix for web's
Row
yourself, in the end? Worth a PR to
jb-compose
?
l
Worth a PR, I don't think so
🆗 1