I have the following layout: ```Row { Compone...
# compose
p
I have the following layout:
Copy code
Row {
    ComponentA()
    Column(modifier = Modifier.fillMaxSize()){
        ComponentB()
    }
}
how can I align the ComponentB to bottom right of the Column? I'm trying to achieve something from the image attached
d
You can use Box as root layout and use the align modifier in the childs
🙏 1
n
You can also consider ConstraintLayout for compose if you need more fine-grained positioning.
c
This is a specific usecase, but you could do this if you wanted.
Copy code
Column(modifier = Modifier.fillMaxSize(), verticalArrangement = Arrangement.Bottom) {
    ComponentB(modifier = Modifier.align(Alignment.End))
}
Columns and Rows also allow alignment in their cross-axis space.
p
Thanks everyone, the box approach worked