I have applied `contentPadding` of `horizontal = 1...
# compose
a
I have applied
contentPadding
of
horizontal = 16.dp
to my
LazyGrid
. For some specific
itemType
(i have many item types) I want to ignore the
contentPadding
. One way I can think of doing this is to apply the padding to all of the other
itemsTypes
. Is there a better solution or something obvious that I am missing?
b
Could you negative horizontal padding the select few item types that you want full width?
a
Copy code
java.lang.IllegalArgumentException: Padding must be non-negative
b
Ya that’s what I figured
a
Btw I managed to do it with layout modifier. I am not sure if it’s the best option, but it works.