Can we add extension function like `SpacedBy(4.dp)...
# compose
r
Can we add extension function like
SpacedBy(4.dp) { Content() }
for
ColumnScope
and
RowScope
?
m
Is Row
horizontalArrangement = Arrangement.spacedBy(4.dp)
not sufficient?
👍🏻 1
r
It is available only when we call Columns and Rows functions directly But when we use material components we can pass composable content with ColumnsScope or RowScope. Here we can’t use it
m
shouldnt the arrangement be set by the parent anyways?
Copy code
fun RowScope.MyComposable(){
Might work for what youre trying to accomplish?
r
It won’t
d
isn't padding enough for what you want? Or do you need custom spacing per item that handles both first and last position?