Hassaan
08/05/2023, 7:27 AMModifier.width(90.dp)
and then another problem arose that i want my numbers in the centre , so i use _wrapContentWidth_()
Modifier._width_(90._dp_)._wrapContentWidth_()
Text(text = "${it}",
fontSize = 64.sp,
fontWeight = FontWeight(500),
color = Black,
modifier = Modifier.width(90.dp).wrapContentWidth()
)
how would you approach this? i think i am overcomplicating itStylianos Gakis
08/05/2023, 8:19 AMStylianos Gakis
08/05/2023, 8:20 AMHassaan
08/05/2023, 8:22 AMHassaan
08/05/2023, 8:22 AMStylianos Gakis
08/05/2023, 8:24 AMHassaan
08/05/2023, 8:27 AMStylianos Gakis
08/05/2023, 8:28 AMStylianos Gakis
08/05/2023, 8:29 AMjamshedalamqaderi
08/05/2023, 8:29 AMStylianos Gakis
08/05/2023, 8:30 AMI think if you set the textAlign to center with fixed width then it should solve
What number will that fixed width be?
jamshedalamqaderi
08/05/2023, 8:31 AMText
widget you need to calculate or do some trial for best fitStylianos Gakis
08/05/2023, 8:32 AMjamshedalamqaderi
08/05/2023, 8:33 AMStylianos Gakis
08/05/2023, 8:34 AMjamshedalamqaderi
08/05/2023, 8:36 AMHassaan
08/05/2023, 8:38 AMStylianos Gakis
08/05/2023, 8:40 AMHassaan
08/05/2023, 8:40 AM