https://kotlinlang.org logo
#compose
Title
# compose
n

Nat Strangerweather

10/04/2020, 2:35 PM
Hi, what am I doing wrong here? I am trying to use the SpaceBetween arrangement but both Strings are stuck on the left of my screen:
Copy code
@Composable
fun PriorityOptions() {
    ScrollableColumn(
        modifier = Modifier.fillMaxWidth()
            .fillMaxHeight()
            .padding(start = 20.dp, end = 20.dp),

        ) {
        Spacer(Modifier.preferredHeight(50.dp))
        Text(text = "Priority Options", style = typography.h1)
        Spacer(Modifier.preferredHeight(50.dp))
        Row(horizontalArrangement = Arrangement.SpaceBetween) {
            Text("Start")
            Text("End")
        }
    }
f

fmasa

10/04/2020, 2:38 PM
Can you try stretching Row to full width?
🙂 1
2
n

Nat Strangerweather

10/04/2020, 2:52 PM
Wonderful, many thanks!
s

Se7eN

10/04/2020, 5:36 PM
I usually add background colors to debug these issues
👍 1