Created
September 26, 2022 11:59
-
-
Save droid-it/66d4c2109ad840a1137c9c973b972c7d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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