I wanna create a dialog for both portrait and land...
# android
n
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.
😶 3
k
Is it possible the UI isn’t being alerted that the orientation has changed? As I recall compose only updates when it detects a change in state. Maybe this code will help? https://stackoverflow.com/questions/64753944/orientation-on-jetpack-compose
160 Views