Skip to content

Instantly share code, notes, and snippets.

@PatilShreyas
Created Jul 30, 2021
Embed
What would you like to do?
@Composable
fun Social() {
val dividerId = "inlineDividerId"
val text = buildAnnotatedString {
append(AnnotatedString("LinkedIn ", spanStyle = SpanStyle(Color.Blue)))
appendInlineContent(dividerId, "[divider]")
append(AnnotatedString(" Twitter ", spanStyle = SpanStyle(Color.Blue)))
appendInlineContent(dividerId, "[divider]")
append(AnnotatedString(" Portfolio", spanStyle = SpanStyle(Color.Blue)))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment