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

iamthevoid

04/29/2022, 12:08 PM
What is the proper way to place buttons in column in AlertDialog when it length greater than the dialog width?
I try to solve it with
onTextLayout
here i check if text wrap and call callback
Here - if callback triggered i replace row with column
t

Tolriq

04/29/2022, 12:09 PM
Depends on the needs but sometimes I use https://google.github.io/accompanist/flowlayout/
i

iamthevoid

04/29/2022, 12:10 PM
But result looks next
t

Tolriq

04/29/2022, 12:12 PM
Alert dialogs with default options are bugged and are not resized when content change there's an open issue about that.
😯 1
i

iamthevoid

04/29/2022, 12:17 PM
And how to Flow Layouts can help me with resizing buggy alert dialog?
t

Tolriq

04/29/2022, 12:55 PM
Because it's done at first measure pass.
7 Views