I have this code 2 colorful ball. Ok it works but ...
# compose
a
I have this code 2 colorful ball. Ok it works but i’d like move code to another composition function. Row is inside a box.
Copy code
Row(modifier = Modifier
    .padding(bottom = 125.dp)
    .align(Alignment.BottomCenter)) {
    Box(
        modifier = Modifier
            .size(10.dp)
            .clip(CircleShape)
            .background(Color.Red)
    )
    Spacer8()
    Box(
        modifier = Modifier
            .size(10.dp)
            .clip(CircleShape)
            .background(Color.Green)
    )
}
If i move row in a composable function i can’t resolve align with any import
a
`BoxScope.`BallIndicator(modifier: Modifer)
a
i have to use this composable?
a
It's a scope that indicates that this Comp is called from another
Box
Comp.
a
thanks it works