Skip to content

Instantly share code, notes, and snippets.

@droid-it
Created September 26, 2022 12:00
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 droid-it/9749064e4fdc4ca0f5773aae8f96a758 to your computer and use it in GitHub Desktop.
Save droid-it/9749064e4fdc4ca0f5773aae8f96a758 to your computer and use it in GitHub Desktop.
@Composable
fun Profile(user: User) {
BoxWithConstraints(modifier = Modifier.padding(16.dp)) {
when (this.maxWidth) {
in (0.dp..400.dp) -> {
VerticalProfile(user)
}
in (401.dp..900.dp) -> {
HorizontalProfile(user)
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment