Skip to content

Instantly share code, notes, and snippets.

@droid-it
Created September 26, 2022 11:59
Show Gist options
  • Save droid-it/66d4c2109ad840a1137c9c973b972c7d to your computer and use it in GitHub Desktop.
Save droid-it/66d4c2109ad840a1137c9c973b972c7d to your computer and use it in GitHub Desktop.
fun Profile(user: User) {
BoxWithConstraints(modifier = Modifier.padding(16.dp)) {
when (this.maxWidth) {
in (0.dp..600.dp) -> {
CompactProfile(user)
}
in (601.dp..900.dp) -> {
ExpandedProfile(user)
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment