Created
March 31, 2026 00:59
-
-
Save skydoves/7faff48109f5c02f8edf975ced98eff2 to your computer and use it in GitHub Desktop.
Compose HotSwan - ProfileCard composable example
This file contains hidden or 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
| @Composable | |
| fun ProfileCard(user: User) { | |
| Column( | |
| modifier = Modifier | |
| .padding(24.dp) // Change this to 16.dp and save | |
| .fillMaxWidth() | |
| ) { | |
| Text( | |
| text = user.name, | |
| fontSize = 20.sp, // Change this to 24.sp and save | |
| color = Color.Black // Change this to MaterialTheme.colorScheme.primary | |
| ) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment