Skip to content

Instantly share code, notes, and snippets.

@victorbrndls
Created October 19, 2021 21:44
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/851355467ed9db9f9d31b736f2e6bb96 to your computer and use it in GitHub Desktop.
Save victorbrndls/851355467ed9db9f9d31b736f2e6bb96 to your computer and use it in GitHub Desktop.
val sizeInPx = with(LocalDensity.current) { 16.dp.toPx() }
val (minPx, maxPx) = with(LocalDensity.current) { min.toPx() to max.toPx() }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment