Checking out `dev03` changes and I am little bit w...
# compose
r
Checking out
dev03
changes and I am little bit wondered why the quite good structuring in
dev02
has been "abandoned" with "parameters" (here: modifiers):
Copy code
//dev02
@Composable
private fun BottomBarAction(
    @DrawableRes id: Int,
    onClick: () -> Unit
) {
    Ripple(
        bounded = false,
        radius = 24.dp
    ) {
        Clickable(onClick = onClick) {
            Padding(12.dp) {
                Container(width = 24.dp, height = 24.dp) {
                    DrawVector(+vectorResource(id))
                }
            }
        }
    }
}
Copy code
//dev03
@Composable

private fun BottomBarAction(
    @DrawableRes id: Int,
    onClick: () -> Unit
){
    Ripple(
        bounded = false,
        radius = 24.dp
    ){
        Clickable(onClick = onClick) {
            Container(modifier = Spacing(12.dp) wraps Size(24.dp, 24.dp)) {
                DrawVector(vectorImage = +vectorResource(id))
            }
        }
    }
}
Before I felt i had control over the layout structure, but now
Padding
has become a
Spacing
modifier
whics
wraps
a
Size
.. ? I somehow lost the control here. Or is there fear that the structuring will become too deep in complex layouts, and therefore it is parameterized, or is the situation simply that there are several parallel layers of structuring -> causing the parameterization. RG
👍 1
d
IIRC they explained why they made that change in the Compose talk at KotlinConf (I think it's in YouTube)
r
I'll check... thanx!
d

https://youtu.be/i9RJpMOsKas

not exactly that minute but that was the talk
r
Wow.. thanx alot !
r
dev02 already had the spacing modifier btw. Padding was already on its way out
r
@danieldisu approx 40600, there are some Kotlin talks, i will listen to them. @romainguy i knew about the Spacing, I thought it was kind of supply/alias for Padding...
The modifier explanation begins at approx 43500...
They explained it ... there are complex structuring.