Whats the best way to get two columns to stick to ...
# compose
j
Whats the best way to get two columns to stick to the left and right side of a row?
Copy code
Column {
    FixedMapView()
    Row(Modifier.fillMaxWidth()){
        Column(Modifier.padding(start=20.dp)) {
            Text("Fin")
            Text(duration)
            Text(charge)
        }
        Spacer(Modifier.padding(end=20.dp))
        Column(horizontalAlignment = Alignment.End,
            modifier = Modifier.padding(end=20.dp)) {
            Row(){
                Text(start.toString())
                Text(end.toString())
            }
            Button(
                modifier = modifier,
                onClick = { print("hello") },
            ) {
                Text("Share Ride")
            }
        }
    }
}
I've got this but it seems hacky to use a spacer to push the two columns apart. Is there an alignment trick I can apply to get them spaced apart?
s
Row(horizontalArrangement = Arrangement.SpaceBetween)
🎉 1
j
Oh thats super helpful!
o
Box would ve also worked I think