Skip to content

Instantly share code, notes, and snippets.

@skydoves
Created March 31, 2026 00:59
Show Gist options
  • Select an option

  • Save skydoves/7faff48109f5c02f8edf975ced98eff2 to your computer and use it in GitHub Desktop.

Select an option

Save skydoves/7faff48109f5c02f8edf975ced98eff2 to your computer and use it in GitHub Desktop.
Compose HotSwan - ProfileCard composable example
@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