Nat Strangerweather

    Nat Strangerweather

    1 year ago
    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:
    @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

    1 year ago
    Can you try stretching Row to full width?
    Nat Strangerweather

    Nat Strangerweather

    1 year ago
    Wonderful, many thanks!
    s

    Se7eN

    1 year ago
    I usually add background colors to debug these issues