Tin Tran
06/01/2023, 10:01 AMDialog
receive the wrong constrain when setting usePlatformDefaultWidth=false
?
It happened on 1 specific device. If I set usePlatformDefaultWidth=true
it would display correctly
This code make the dialog appear offset to the right. If I remove the padding the dialog would fill the screen and the right part would be slightly off the screen….
Dialog(
properties = DialogProperties(
usePlatformDefaultWidth = false,
)
) {
Column(
modifier = Modifier
.padding(horizontal = 16.dp, vertical = 8.dp)
.fillMaxWidth(),
) { }
}