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?