https://kotlinlang.org logo
Title
k

KotlinLeaner

02/03/2023, 10:24 AM
Hi guys, I want to make divider full width of
AlertDialog
in
Material3
. I can't find the way to override the padding. Is there a way we change the internal padding?
I want like this full width of border in AlertDialog
In my code divider is have side padding, So how can I change it?
L37BP.png
AlertDialog(
        onDismissRequest = {},
        confirmButton = {},
        title = {
            Column() {
                Text(text = "header")
                Divider()
            }
        },
Thanks
t

Tgo1014

02/03/2023, 11:22 AM
Well you can use the
AlertDialog
that takes the
content
parameter but then you have to setup everything by yourself. Maybe copying some stuff from the
AlertDialog
implementation
k

KotlinLeaner

02/03/2023, 11:22 AM
okk perfect...