Skip to content

Instantly share code, notes, and snippets.

@fvilarino
Created December 4, 2022 01:14
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 fvilarino/62d07ba3a05267e0bc993721c41b661a to your computer and use it in GitHub Desktop.
Save fvilarino/62d07ba3a05267e0bc993721c41b661a to your computer and use it in GitHub Desktop.
Segmented Progress - Local density
val gap: Float
val barHeight: Float
with(LocalDensity.current) {
gap = segmentGap.toPx()
barHeight = progressHeight.toPx()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment