Skip to content

Instantly share code, notes, and snippets.

@skydoves
Created January 20, 2022 05:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skydoves/4218cb2e6e85f7eeb7ca12ddde10f3c5 to your computer and use it in GitHub Desktop.
Save skydoves/4218cb2e6e85f7eeb7ca12ddde10f3c5 to your computer and use it in GitHub Desktop.
window_message_screen
MessagingScreen(windowSize = rememberWindowSizeClass())
// Draws different UIs depending on the WindowSize.
@Composable
fun MessagingScreen(windowSize: WindowSize) {
when (windowSize) {
is WindowSize.Expanded -> MessagingScreenExpanded(windowSize)
else -> MessagingScreenRegular()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment