https://kotlinlang.org logo
#compose
Title
# compose
t

Tgo1014

02/16/2023, 12:08 PM
I've a dialog and I would like it to fill the max size without "stretching" the parent, basically to make the blue box fill the full width. I tried using
fillMaxWidth()
but then it stretches the parent even if it's not needed. Is there a way do to this?
c

Csaba Szugyiczki

02/16/2023, 1:44 PM
You might need to play around with Intrinsic width to prevent your dialog resizing https://developer.android.com/jetpack/compose/layouts/intrinsic-measurements
5 Views