Is there a built-in way to add more padding to an ...
# compose
a
Is there a built-in way to add more padding to an existing
PaddlingValues
? I want to add more padding from the one coming via the Material
Scaffold
. My whole screen is a LazyVerticalGrid so I can't just add a Modifier PS: I know i can do
PaddingValues(top = contentPadding.calculateTopPadding(), ...)
but I am looking for a less verbose way
a
I am aware of how to combine them on my own. I am looking for anything similar that comes with the framework
s
Sorry, I am afraid I don't understand what you're looking for then 😔
i
There's three separate issues for making it easier to add PaddingValues together (the first of which is from 2022), but like Stylianos said, you need to do this yourself right now: https://issuetracker.google.com/issues?q=Paddingvalues%20plus%20status:open
👍 1
a
@Stylianos Gakis i am building self contained component functions and I do not want to rely on anything else but what Compose UI (and the standard libraries) gives you. that's why I don't want to create my own (extension) functions for this. I could have been more clear in my original message, but my brain was fried after hours of coding 😅 thanks for linking @Ian Lake
👍 1