Created
September 11, 2023 19:30
-
-
Save zurche/2cc3e4c04d5d61daa9eff167ba13d1d9 to your computer and use it in GitHub Desktop.
Ticker Name Composable
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
@Composable | |
private fun TickerName(name: String = "Apple Inc.", tickerName: String = "AAPL") { | |
Column( | |
modifier = Modifier | |
.padding(start = 10.dp, end = 5.dp) | |
.width(80.dp) | |
) { | |
Text( | |
text = name, | |
style = MaterialTheme.typography.labelMedium, | |
fontWeight = FontWeight.Bold, | |
color = Color.Black, | |
overflow = TextOverflow.Ellipsis, | |
maxLines = 2 | |
) | |
Text(text = tickerName, style = MaterialTheme.typography.labelSmall, color = Color.Gray) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment