Skip to content

Instantly share code, notes, and snippets.

@victorbrndls
Created November 1, 2022 22:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save victorbrndls/78c706045f715ac7df90ded7bf996ecd to your computer and use it in GitHub Desktop.
Save victorbrndls/78c706045f715ac7df90ded7bf996ecd to your computer and use it in GitHub Desktop.
val createText = @Composable { localModifier: Modifier ->
Text(
text = text,
textAlign = textAlign,
modifier = localModifier,
color = color,
fontSize = fontSize,
fontStyle = fontStyle,
fontWeight = fontWeight,
fontFamily = fontFamily,
letterSpacing = letterSpacing,
textDecoration = textDecoration,
lineHeight = linHeight,
overflow = overflow,
softWrap = softWrap,
maxLines = 1,
onTextLayout = onTextLayout,
style = style
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment