Skip to content

Instantly share code, notes, and snippets.

@victorbrndls
Created November 1, 2022 22:29
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/93692dbb9a360612a0e79cac438f5f15 to your computer and use it in GitHub Desktop.
Save victorbrndls/93692dbb9a360612a0e79cac438f5f15 to your computer and use it in GitHub Desktop.
if (mainText.width <= constraints.maxWidth) {
mainText = subcompose(MarqueeLayers.SecondaryText) {
createText(Modifier.fillMaxWidth())
}.first().measure(constraints)
textLayoutInfoState.value = null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment