Screen Width and Height #3225
Replies: 5 comments 8 replies
-
On the desktop (JVM) you can use |
Beta Was this translation helpful? Give feedback.
-
With the help of expect/actual, you can use |
Beta Was this translation helpful? Give feedback.
-
You can also use a Layout as your root Composable and obtain the size from the passed constraints. This solution doesn't depend on platform implementations and also gives you the exact size given to your Composable which could be different from the device screen size in some cases. |
Beta Was this translation helpful? Give feedback.
-
@pablichjenkov The usage of |
Beta Was this translation helpful? Give feedback.
-
Very strange but simply addressing containerSize causes my whole UI to break / freeze (compose func that called the method)
|
Beta Was this translation helpful? Give feedback.
-
How to get screen width and height for Ios and Android in common module in compose Multiplatform.
I have tried to get through LocalConfiguration, but it's not available in compose multiplatform.
So how to I achieve width and height of screen for Android and Ios, if I'm designing whole Ui in common module.
Beta Was this translation helpful? Give feedback.
All reactions