Rok Oblak
02/05/2025, 4:53 PMusePlatformDefaultWidth=true
dismisses it when clicked outside.
Dialog(onDismissRequest = {...
}, properties = DialogProperties(
usePlatformDefaultWidth = false,
), content = {
Surface(modifier = Modifier.fillMaxSize().padding(56.dp)
) {
Skaldebane
02/05/2025, 5:02 PMWinson Chiu
02/05/2025, 5:02 PMRok Oblak
02/05/2025, 5:05 PMSkaldebane
02/05/2025, 5:07 PMSurface
actually blocks touch passthroughSkaldebane
02/05/2025, 5:07 PMBox
to apply the padding, the the surface inside it.Winson Chiu
02/05/2025, 5:08 PMWinson Chiu
02/05/2025, 5:09 PM.width(windowWidth - padding)
and the click outside should just work.Rok Oblak
02/05/2025, 5:28 PM