Skip to content

Instantly share code, notes, and snippets.

@waseefakhtar
Created August 24, 2021 21:15
Show Gist options
  • Save waseefakhtar/7b06d03a94352e88b209a52fa8179582 to your computer and use it in GitHub Desktop.
Save waseefakhtar/7b06d03a94352e88b209a52fa8179582 to your computer and use it in GitHub Desktop.
@Composable
fun ProfileProperty(label: String, value: String) {
Column(modifier = Modifier.padding(start = 16.dp, end = 16.dp, bottom = 16.dp)) {
Divider(modifier = Modifier.padding(bottom = 4.dp))
Text(
text = label,
modifier = Modifier.height(24.dp),
style = MaterialTheme.typography.caption,
)
Text(
text = value,
modifier = Modifier.height(24.dp),
style = MaterialTheme.typography.body1,
overflow = TextOverflow.Visible
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment