Push apart
A weighted Spacer separates the leading and trailing text.
Row(modifier = Modifier.fillMaxWidth()) {
Text("Left")
Spacer(Modifier.weight(1f))
Text("Right")
} Push siblings apart with flexible empty space
Spacer is an empty layout used to insert gaps. Given a weight inside a Row or Column it absorbs all leftover space, shoving the elements on either side to opposite ends.
A weighted Spacer separates the leading and trailing text.
Row(modifier = Modifier.fillMaxWidth()) {
Text("Left")
Spacer(Modifier.weight(1f))
Text("Right")
}