Determining screen types for Adaptive UI in Compose/Kotlin Multiplatform (Desktop and Android)

Rik van Velzen
3 min readMay 19, 2024

If we would be developing UI on Compose Multiplatform for mobile phones only, layouts for iOS and Android fairly similar if not an exact copy. Most apps have some kind of bottombar that takes care of navigating between different content that is displayed above the bottom bar.

When developing for other platforms like desktop/web, or even if we add tablet layouts for iOS/Android we need to develop different UI layouts depending on the screen dimensions.
In the Material 3…

--

--