I'm trying to display an error if the input is inv...
# compose
t
I'm trying to display an error if the input is invalid under the
TextField
on a
AlertDialog
but as you can see in the screenshot, it doesn't resize to show the error message. Any way to fix this?
👀 1
t
This is a very very very long lasting Compose issue with dialogs, by default they do not support content size change ... See https://issuetracker.google.com/issues/221643630 to follow the issue and the workaround. (And the older one that was closed https://issuetracker.google.com/issues/194911971)
t
Thanks @Tolriq! Reading the topic the workaround using
DialogProperties(usePlatformDefaultWidth = false)
also works, at least I don't have to hardcode
height
values. I gave it a star anyway so they fix this issue soon. Thanks again 😄