Anyone know any possible reason that make `Dialog`...
# compose
t
Anyone know any possible reason that make
Dialog
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….
Copy code
Dialog(
        properties = DialogProperties(
            usePlatformDefaultWidth = false,
        )
    ) {
         Column(
              modifier = Modifier
                 .padding(horizontal = 16.dp, vertical = 8.dp)
                 .fillMaxWidth(),
        ) {   }
    }