Created
August 24, 2021 21:15
-
-
Save waseefakhtar/7b06d03a94352e88b209a52fa8179582 to your computer and use it in GitHub Desktop.
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 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