I am trying to put two text on the right side. Her...
# compose
i
I am trying to put two text on the right side. Here is a code for it Click Here
k
Maybe try to add TextStyle to your Text composable, to align to right?
i
I tried to do
Copy code
Text(it.attributes.awayScore, textAlign = TextAlign.End)
No Change
k
try applying
fillMaxWidth
so that Text and Column can stretch
i
No Change to add modifier.fillMaxWidth on the Column
k
And on the Text as well?
Copy code
Column(Modifier.fillMaxWidth()){
 Text(Modifier.fillMaxWidth())
}
i
No change
Very odd
@krzysztof Some how, I managed got it to work in different way. Modifier.weight(1f)
k
isn’t weight affecting height as well?
i
if you do in first Text, it wouldn't affect height