I have this layout where I have a row with multipl...
# compose
g
I have this layout where I have a row with multiple Texts. Now I noticed that the last text is arranged weirdly. Is it possible to put multiple Texts in a row and then go to the next line when the row is full (like a column?)
This is my code:
Copy code
fun TimingView(timing: AdministrationScheduleViewModelData) {
            Text(timing.scheduleText ?: "")
        }
        
        
        Row(horizontalArrangement = Arrangement.spacedBy(4.dp)) {
            TimingView(instructions.timing)

            if (instructions.isDoseAvailable) {
                Text(instructions.dose!!)
            }

            if (instructions.isMaxDosePerPeriodAvailable) {
                Text(instructions.maxDosePerPeriod!!)
            }
        }
j
You might wanna look into
FlowRow
, it’s just been released with the latest version of accompanist: https://google.github.io/accompanist/flowlayout/#usage
g
Yes thank you!