I wanna create a dialog for both portrait and landscape mode and I want it at to be at the bottom centre for portrait and left bottom for landscape. I managed to do it with DialogProperties(useplatformdefaultwidth = false)
The problem is when I change the orientation the ui breaks sometimes and I cant figure out why.