Akram Bensalem
06/12/2021, 4:55 PMnglauber
06/13/2021, 3:34 AMRow { // All the steps
steps.forEachIndexed { index, s ->
StepItem(s, index, lastIndex)
}
}
The StepItem
is something like this (again, pseudo code):
Column {
Row (
verticalAlignment = Alignment.CenterVertically
) {
if (index != 0) DrawLine(Modifier.weight(1f)
Box(Modifier.background(
if (selected) colorSelected
else colorUnselected,
CircleShape) {
Text(step)
}
if (index != lastIndex)
DrawLine(Modifier.weight(1f)
}
Text(stepName)
}
I hope it helps you as a start point…Akram Bensalem
06/15/2021, 6:03 PMnglauber
06/15/2021, 6:05 PM