Hi all! I'm would like to create an AlertDialog wi...
# compose
g
Hi all! I'm would like to create an AlertDialog with a scrollable content but I have a strange behavior with a padding in top of the dialog and the content that goes under my buttons in bottom of the dialog. There is already an issue created on the bugtracker somewhere about that?
c
I've seen the same bug too (I'm not sure if it's being tracked or not), but a normal
Dialog
works fine with scrolling content
g
The code to reproduce is really easy:
Copy code
AlertDialog(
        title = {
            Title(
                iconRes = iconRes,
                title = title
            )
        },
        text = {
            Column(modifier = Modifier.verticalScroll(rememberScrollState())) {
                Text(
                    text = message!!
                )
            }
        },
        onDismissRequest = onDismissRequest,
        buttons = {
            // Buttons here
        }
    )
@Casey Brooks Yes, we'll use
Dialog
for now but the
AlertDialog
should be fixed 🙂
a
😂 alright, that's a pretty great bug. Is it filed?
g
Not yet, I asked if there are already a ticket for that but if not, I'll create it soon.
m
I didn't manage to find one, please file!
g