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/7414e9a0d4aa10fd793a4e6671db43af to your computer and use it in GitHub Desktop.
Save victorbrndls/7414e9a0d4aa10fd793a4e6671db43af to your computer and use it in GitHub Desktop.
val infiniteWidthConstraints = constraints.copy(maxWidth = Int.MAX_VALUE)
var mainText = subcompose(MarqueeLayers.MainText) {
createText(Modifier)
}.first().measure(infiniteWidthConstraints)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment