Skip to content

Instantly share code, notes, and snippets.

Last active October 26, 2023 10:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
fun GlanceText(
text: String,
@FontRes font: Int,
fontSize: TextUnit,
modifier: GlanceModifier = GlanceModifier,
color: Color = Color.Black,
letterSpacing: TextUnit = 0.1.sp
) {
modifier = modifier,
provider = ImageProvider(
text = text,
fontSize = fontSize,
color = color,
font = font,
letterSpacing = letterSpacing.value
contentDescription = null,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment