Nino
08/06/2025, 1:37 PMBox(
modifier = Modifier.fillMaxSize(),
contentAlignment = Alignment.Center
) {
Text(
modifier = Modifier
.padding(16.dp)
.background(Color.Magenta),
text = "Some long teeeeeext",
fontSize = 40.sp,
textAlign = TextAlign.Center,
)
}
Result of this code [1]
I tried .width(IntrinsicSize.Min)
but it makes the text "too small" (displaying only one word per line) [2]
Desired result [3]Nino
08/06/2025, 2:27 PMgildor
08/07/2025, 3:25 AMgildor
08/07/2025, 3:26 AMNino
08/07/2025, 8:19 AMsp
breaks the rendering for some reason 🤦.
Everytime I have a "not Hello World" design I have to put extra estimations points for it (and usually, the designer makes a "blander copy" for Android) because Compose is not reliable for complexe usecases. I have to find obscure fixes and workarounds to make it happen (thank you folks btw, you are the real heroes of Compose!). But please, that's not what I call prod ready. Stable API signature ? Yes. But it doesn't make it prod ready if it's full of regressions.
It's OK to say Compose is not prod ready, there's still so much @ExperimentalXXX stuff going on, completely broken @Composables (I'm looking at you HorizontalPager
). All I want to say is that even today, Compose is not a smooth ride. So 4 years ago? Hell no it wasn't prod ready.gildor
08/07/2025, 9:06 AMNino
08/07/2025, 9:07 AMSergey Y.
08/07/2025, 9:37 AMgildor
08/07/2025, 10:00 AMNino
08/07/2025, 10:08 AM"We" like whole industry except you?I'm unsubbing from this thread, thanks for the personal attacks. Coming from a mod, that's a shame. If you weren't so blinded, dismissing every comment not aggreing with you, maybe you'd see that Compose is far from perfect. We (in my company, 20+ Android senior devs with previous Compose experience) struggle often with Compose. Just gotta check the whole number of
// FIXME:
or HACK:
or just comments lines in the Compose files opposed to the other files. So no, I'm not alone. I like working with Compose in some way (easy animations, declarative), I hate working with Compose in others (sizing, text rendering, performances). We can't all be blinded fanboys you know.
the only fact that it's not in out of the box doesn't make it not ready for prodYou're so blinded you forgot the notion of regression. It was working fine in Android v1 (Views), it's not working fine anymore in Android v2 (Compose). How can you even try to argue with that. WTF.
gildor
08/07/2025, 10:10 AMgildor
08/07/2025, 10:11 AMgildor
08/07/2025, 10:12 AMgildor
08/07/2025, 10:22 AM